Solving problem 27.