I have three cases, and for each I need to determine the amount of taxable dividend, return of capital, and capital gain in each.

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.

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