Solve problem #25.