You file a non-resident HI return and then a resident PA return. Both will report the HI sale of land.
Only the PA return will have a credit for the taxes that were paid to HI that are on the HI return.
This prevents both states from taxing it by having the credit.