Hello there. To solve this question, we'll have to remember some properties about ratios.
If a car can drive 450 miles on a tank of 30 gallons, we have to determine how far can it drive on 40 gallons.
Assuming these values varies directly, then we have that
Let x be the distance that can be travelled with 40 gallons, such that
![(450)/(30)=(x)/(40)](https://img.qammunity.org/2023/formulas/mathematics/college/p815yklwt5qr6uiitpy9njgdyznkyz8f66.png)
Simplify the fraction on the LHS by a factor of 30
![15=(x)/(40)](https://img.qammunity.org/2023/formulas/mathematics/college/bnuoz4ybd8i5ohdjq4ifhhdqy9i5q2esea.png)
Multiply both sides of the equation by a factor of 40
![x=600\text{ miles}](https://img.qammunity.org/2023/formulas/mathematics/college/w17fhoxj64fpfmulwfuwie1o7cot0mk92a.png)
Now, we have to find how many gallons are needed to drive 960 miles.
Using the same values we found, say y is the number of gallons needed to drive 960 miles, such that
![(450)/(30)=(960)/(y)](https://img.qammunity.org/2023/formulas/mathematics/college/k0v1pe0a7vh3sustfob0241esyjw3trq5r.png)
Simplifying the fraction
![15=(960)/(y)](https://img.qammunity.org/2023/formulas/mathematics/college/3j06a8i53qzxuaqq8tiea5wzzowid3d2km.png)
Cross multiply the values, such that
![15y=960](https://img.qammunity.org/2023/formulas/mathematics/college/iouf2zock7f3vt5v05iaxw9qwyvjg55ypm.png)
Divide both sides of the equation by a factor of 15
![y=64](https://img.qammunity.org/2023/formulas/mathematics/high-school/rk0ate9rva2136rjvist4legtwatyttbty.png)
So the car needs 64 gallons in order to drive 960 miles.