Solve problems 1-50.