Lemon law Rv buyback settlement taxes

So my question is what am I going to be taxed on or what do I put on my taxes? The manufacture is buying back the unit from us.  It’s a lemon.

Cash price was $42,450


$46,227 with taxes and fees.   California 

 

…… ok so 

 

our settlement is $53,788


The are paying off our loan, $31,262

The rest of it ($22,525.54.)

(Which is  the down payment ($11227.54 )and monthly payments we made to the bank ($11,298).

I’m just wondering what we will be taxed on 1099?   We are settling for what we put into the RV.