solve P16