We are given that 240 miles are driven using 9 gallons of gas. To determine the gallons of gas needed to drive 216 miles we use a rule of three like this:

Now, we cross multiply:

Now, we divide both sides by 240 mi:

Now, we solve the operations:

Therefore, 8.1 gallons are needed.