Solve problem 10