added solutions for problems 38-42