Solve Problem 34