problem 24 solved