problem 15 solution