Solve problem 36