Solve problem 3.