problem 32 solution