I have to comment on the following situation using an if clause (i.e. write a conditional sentence regarding the given situation) :
They never agree to anything I suggest. That's how they lost that house which was a bargain.
I cannot decide between
If they agreed to my suggestion, they wouldn't have lost that house which was a bargain.
and
If they had agreed to my suggestion, they wouldn't have lost that house which was a bargain.
Semantically, I believe that the first sentence is correct, but it doesn't sound grammatically correct to me. This is why I want to see what you think about this.