Solve problem 8-9