Edit the text to remove any grammatical problems:
As for the oil companies, apparently, they could not make money from oil, if all the engine cars were substituted by electric cars.
As for the oil companies, apparently, they could not make money from oil if all the engine-driven cars were substituted by electric cars.