Solve problem 5.