Transfer of ownership of the used car

In May 2020 I bought a used vehicle from OLX through an agent, settling all the money they asked for, on a word that the transfer of ownership would be done in a month. Having continuously chasing the agent until December 2020 for the transfer of ownership, later in January , came to know that the vehicle was still under hypothecation ( still under settlement ), which the agent failed to communicate with me. The money transaction details and vehicle sales agreement exist to be the proof for the same . This being the background, and continuous argument with the agent and the seller (used car dealer), they agreed to take back the vehicle on a condition that, of the total money we paid, they will deduct the cost of distance travelled and any physical damages incurred. Pointing to the fact that, I bought the vehicle for my personal use and not on rental basis, could not agree with the deal they put forward and demanded to get all the price I spent to buy the car. I hereby, would like to know the legal implications and the further steps I must do to get the whole money back from the agent / seller.