Step 1: Apply the First Law of Thermodynamics
The first law of thermodynamics is expressed as:\[\Delta U = Q - W\]Where:- \( \Delta U \) represents the change in internal energy,- \( Q \) represents the heat transfer,- \( W \) represents the work done by the gas.Step 2: Substitute known valuesWe are given:- Work done \( W = 50 \, \text{kJ} \),- Change in internal energy \( \Delta U = -30 \, \text{kJ} \) (negative due to a decrease).Substituting these values into the first law:\[-30 = Q - 50\]Step 3: Solve for \( Q \)\[Q = -30 + 50 = 20 \, \text{kJ}\]Final Answer:\[\boxed{+20 \, \text{kJ}}\]