solve problem 36