solved problems 27-32