solve problem 10