problem 49 solution