problem 10 solution