Solve problems 21-22