The rate of consumption of petrol by a vehicle varies directly as the square of…