Problem 22 Solution.