Investors & landlords

Hi:

If I have passive activity real estate losses carried over from 2018 ~$40K. 2019 rental net profit is $8,000. 

What is the 2019 rental real estate loss and how is it calculated? Thanks!