Solution to problems 34 and 36