solve problem 35