State tax filing

Thank you, Mindy, for your help.  I do have income from the sale of my NJ home (above the exclusion).  So then I should answer "Yes" to the question if I earned income in another state?  Then how do I fill out the PA Schedule G/L form?  That is not clear to me.

 

On the PA state section it is asking me if  I have double taxed income.  I said "No" and then it is asking for gross compensation, dividend income, etc.  It would seem that I have to fill this out because the NJ Resident return and the NJ Non-resident return are both asking me to pay taxes.  Do you agree?  I appreciate your time.