problem 36, 37, 38, 40, and an attempt for 329