Add solutions to problems 36 - 39.