problem 35 and 50