How to calculate tax

I recently sold a joint ownership (50/50) rental property for $600,000 (total).  The closing cost and mortgage was $300,000 (total).  So after paying off these the remaining is $300,000 (total).  I should get $150,000, however, I agreed previously that I will only take $120,000.  When filing tax return, how do I calculate?