problem 59 solution