problem 19 solution