Added solutions to problem 46 and 47.