solved problem 34-