if I bought 3 items at 24.95 and 2 items at 45 and they were all 30% off, If I had bought these 5 items without the 30$ off what would I have paid

(x - .30) = 3(24.95) + 2(45)

Solve for x.