problem 37 solution