Crime Scenario. If person A got money stolen from person B, then person B bought a car from a Legitimate car dealership, then after two?

months person B sold the vehicle to person C.

Then a year later person B decided to confess all these crimes to the police. Who would get the money and who would get the car, Legally speaking? Details are good. Thanks.
3 answers 3