Adding solutions to problem 24 and 25