Solve Problem 30