Hi there, I would be grateful if anyone can advise me on this:

I traded in my 2010 Hyundai IX35 in May 2011 with Dealer X who are part of the Independent Dealer Association F&I (IDAS), I purchased a 2011 Volvo S60 2.0 turbo from them, the Volvo proved to be not so reliable (only had 6000km) on the clock, took it in for repairs 3 times to the dealer and had long waiting periods as all parts had to come from Switzerland, the final straw was the clutch that went at 20 000km, waited two weeks for this to be fixed and was without a vehicle. So I decided to trade it in at dealer A (reputable dealer e.g BMW Audi etc) in May 2013. Received a call from dealer A 2 days ago (five months after trade and purchase) telling me that they had sold the Volvo to another fellow who had an independent check done on the car for whatever reason and found out it was a code 3 (I knew nothing about this) and needless to say he returned it to dealer A. The damage to the vehicle was around 300k so it was a write off. Dealer A had it checked and the chassis was bent, arch welded together, gear box had been welded etc. First question is why could Volvo not see this when it was on the hoist for two weeks at their dealership. Anyway dealer A wants to meet with me as I sold it to them and subtly suggested I am the last responsible person. Although Dealer A did check with transunion before they purchased the Volvo from me and there was no record of accident damage. The report on transunion only came up a month back to show it was a code 3 but the accident happened in 2010. Before I meet with Dealer A what are my rights, what are their rights? I need to know legally where I stand here as I cannot in my opinion be held accountable as I did not know about any of this. I would not have paid 300 000 for a code 3 vehicle.