FAR question

I encountered the following question which had me confused. When I read the question, I thought there was no commercial substance. Since the cash was received, I thought that a prorated amount of the $30,000 gain should be recognized. Can anybody tell me why they think the whole gain should be recognized? What am I missing??? Thanks in advance!! Equipment is bought by a company on January 1, Year One for $500,000. After several years, the related accumulated depreciation balance is $220,000. However, the asset on that date is actually worth $310,000. It is traded for a similar asset with a fair value of $300,000. In order to even up the trade, the company also receives cash of $10,000. What gain should the company record as a result of this exchange? A Zero B $10,000 C $20,000 D $30,000