I have three cases, and for each I need to determine the

Need help learning how to solve this:
I have three cases, and for each I need to determine the amount of taxable dividend, return of capital, and capital gain in each.

Corporate earnings and profits of $620,000; stockholder basis in stock of $75,000; distribution of $240,000.
Corporate earnings and profits of $45,000; stockholder basis in stock of $35,000; distribution of $155,000.
Corporate earnings and profits of $300,000; stockholder basis in stock of $125,000; distribution of $200,000.

"Is this part of your assignment? We will write the assignment for you. Click order now and get up to 40% Discount"