solve problem 37