Regulation Question no idea how to solve :(

Thayer Corporation purchased an apartment building on January 10, 2008 for $200,000. The building was depreciated using the straight-line method. On February 20, 2014, the building was sold for $220,000, when the asset balance net of accumulated depreciation was $170,000. On its 2014 tax return, Thayer Corporation should report? a Ordinary income of $50,000. b Section 1231 gain of $44,000 and ordinary income of $6,000. c Section 1231 gain of $42,500 and ordinary income of $7,500. d Section 1231 gain of $50,000. The answer is B, but why?!! They never give us a the value for the Straight Line (S/L) Depreciation to calculate the difference between S/L & 170K Depreciation...unless I am not comprehending the questions right. Please help in full explanation. Thank you :(