Answer
we all know that ,
efficiency = $W_{cycle}$/$Q_{in}$
so , $Q_{in}$ = $W_{cycle}$/efficiency ,
Here , efficiency = 0.3 or 30 % , $Q_{in}$ = 500 MJ
$W_{cycle}$ = efficiency $\times$ $Q_{in}$ = 0.3 $\times$ 500MJ = 150 MJ
here ,
$W_{cycle}$ = $Q_{cycle}$ = $Q_{in}$ - $Q_{out}$
thus ,
$Q_{out}$ = $Q_{in}$ - $W_{cycle}$ = (500-150)MJ =350 MJ.
Work Step by Step
we all know that ,
efficiency = $W_{cycle}$/$Q_{in}$
so , $Q_{in}$ = $W_{cycle}$/efficiency ,
Here , efficiency = 0.3 or 30 % , $Q_{in}$ = 500 MJ
$W_{cycle}$ = efficiency $\times$ $Q_{in}$ = 0.3 $\times$ 500MJ = 150 MJ
here ,
$W_{cycle}$ = $Q_{cycle}$ = $Q_{in}$ - $Q_{out}$
thus ,
$Q_{out}$ = $Q_{in}$ - $W_{cycle}$ = (500-150)MJ =350 MJ.