Bill bought 13 notebooks, 26 pens, and 19 markers for $25. Paula bought 27 notebooks, 18 pens, and 31 markers for $31. How many dollars would it cost Greg to buy 24 notebooks, 120 pens, and 52 markers?

Let's think step by step and output the final answer within \boxed{}.
user