Solve problems 52 and 57.