Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Compare two types of engines

### Input:
Diesel and gasoline

### Response:
Diesel engines are more efficient than gasoline engines, offering fuel savings of up to 30%, and producing less carbon dioxide emissions per gallon of fuel. However, diesel engines require frequent maintenance, as well as being more expensive initially than gasoline engines.