The ratio of Peter's money to Nick's money was 2:3 at first. After Peter gave Nick $15, the ratio of Peter's money to Nick's money became 1:2. What was the total amount of money they had altogether?

2/5T - $15 / 3/5T + $15 = 1/2.

T = $225.
Total amount is $225