solve problem 25