solved problem 20 and 25