problem 22 done
problem 23 done
problem 24 done