State tax filing

Column E of schedule CA 540NR

Section B

number 5 -rental real estate, royalties,...

Do I take my total rental income and subtract all of my basic expenses or do I additionally subtract deductible rental real estate loss after limitation from form 8582? 

 

thank you