If a person borrowed money from a friend to buy a car in the friend's name and he fails to pay how would the friend get the car back?

let me make sure i understand the deal. "A" borrows money.... never mind. The LEINHOLDER who repos the car will sell it and deal with the person whose name was on the LOAN for the car. IF you are NOT either of those two, you are out of luck. You have made a DONATION.