Problem 36 solution and 37 start