Compute the total and annual returns on the described investment. Four years after buying 50 shares of XYZ stock for $60 per share, you sell the stock for $4500.

the gain is 4500-60*50 = 1500

So now you can figure the returns as usual, based on the $3000 cost.