Rule reminder
In 'se' clauses referring to hypothetical past situations, the congiuntivo trapassato (not the indicative trapassato prossimo) appears in the 'se' clause, with the condizionale passato in the main clause.
Se non ___ (comprare) quella macchina, non avrei avuto tutti questi problemi.