Add solutions to problems 22 and 30