solve P24