Solve Problem 12