Solve problem 37