You can set email only one account by following these steps:
1. Yahoo setting path: Gmail > Top left menu button > Setting > Add account > click"Yahoo"
Other email setting path: Gmail > Top left menu button > Setting > Add Account > click "other"
2. If you want to receive both at the same time, please clone Gmail.
Add by the same path.