and 4,000 gallons of Fuel B available.
The mixed fuel must have an octane rating of no less than 80.
When fuels are mixed, the amount of fuel obtained is just equal to the sum of the amounts put in.
The octane rating is the weighted average of the individual octanes, weighted in proportion to the respective volumes.