A theoretical gasoline engine runs with 76 percent efficiency. It is calculated that it expels 3.25*10^4 J of heat.

a. Find the heat absorbed in one cycle.
b. Find the work output in one cycle.

All this comes from the definition of efficiency.

percentefficiency*100= work out/ heat in

and of course, work out= heat in - expelled energy.