Both the imperfect and the preterite are tenses used to talk about the past. They can be used together in the same sentence.
Use the imperfect to talk about situations in the past, such as whatthings were like or what was going on. The imperfect doesn't say anything about when the situation began or ended.
The jeans cost too much.
Use por to mean
Use para to mean