solved problem 32, 35