I have a problem with third conditional
I make a sentence:
If I had bought new car with guarantee, I wouldn’t have had a problem with it.
But translator give me another sentence:
If I bought a new car with a warranty, I wouldn't have any problems with it.
Help me to understand this type of sentences