How can my gain on rental property sold in 2019 for $123000 show a gain of $97688 when I purchased the property in 2011 for $90000?

Selling costs=$12000
Depreciation=$22000