Solve problem 27.