finished problems 30 and 31
finished problem 32