Fruit Punch P contains 40% juice, Fruit Punch Q contains 30% juice, and Fruit Punch R contains 55% juice. If gallons of Punch P,
gallons of Punch Q, and
gallons of Punch R are mixed to give
gallons of fruit punch that contain 45% juice, what is
in terms of
and
?