Solve problem 24.