problem 24 easy solution