Part landlord/part renter

In 2008, I rented the property and took part of the depreciation.  Decided to move back and live in the rental property in 2010.  Then in July 1 2020, i was a landlord again until the remainder of the year.  I also rented an apartment from July 1 2020 till December 2020.  I rented my apartment for $1,600 a month while I paid rental $1,220 a month.

 

How do I enter depreciation if I bought the property for $155k?