Finished problem 29 and wrote the problem statement for problem 31