Solve Problem 8
Solve Problem 9