Retirement tax questions

Thank you for helping me. 

 

In my case, I was able to keep my car. I received the check was $45,000, I paid the car was $28,500. Can I use the method $45,000 - $28,500 = $16,500, capital gain is $16,500 ?

 

Thank you so much.