Problem 29 Solution.