Your AP application is based on your pending I-485. Therefore you should use the A# that appears on your I-485 receipt notice.
Incidentally, the number on your I-485 receipt notice should be the same as the one on your approved I-140, but even if it isn't for whatever reason, use the A# on the I-485 receipt notice).