solve P21