Answer :

To calculate efficiency you should divide output by input energy.

The engine produces 48000 j energy from 400000 j given energy from gasoline.

48 000/400 000 = 48/400 = 12/100 = 12%

Efficiency of this engine is 12%