Solve problem 25