I have the following questions and the answers. Can anyone show me how they got the answers.

Question
9. Company B paid a $1.00 dividend per share last year and is expected to continue to pay out 40% of its earnings as dividends for the foreseeable future. If the firm is expected to generate a 10% return on equity in the future, and if you require a 12% return on the stock, what is the value of the stock?
Answer
d. $17.67

Question
10. A stock is not expected to pay dividends until three years from now. The dividend is then expected to be $2.00 per share, the dividend payout ratio is expected to be 40%, and the return on equity is expected to be 15%. If the required rate of return is 12%, the value of the stock today is closest to;
Answer
c.$53