Solved problems 24 and 25.