Can Federal Amount for a Combined Rental Income from 2 States be less than the Allocation for 1 State?

Hello and thank you for taking the time to answer my question.

 

I'm finalizing my Utah State return as Non-resident.  I have a rental in the Utah and reside in NJ and also have rental here.  I had profits in UT and loses in NJ due to repairs and upgrades.  Let's say my Federal combined rental income/losses is +10k  (20k after expenses in UT minus 10k after expenses in NJ ).  The UT return is asking me the Utah portion of this income.  Do I put my actual UT rental income (20k) or the UT amount has to be less the Federal Amount combined (income minus expenses of both States)?

 

thanks!