Solve problems 25 and 27