problems 30, 31, and 32