Concept:
According to the first law of thermodynamics:
\[
\Delta U=Q-W
\]
where \(Q\) is heat supplied to the gas and \(W\) is work done by the gas.
Step 1: Given pressure:
\[
P=50\,N/m^2
\]
Step 2: Initial volume:
\[
V_1=10\,m^3
\]
Final volume:
\[
V_2=4\,m^3
\]
Step 3: Change in volume:
\[
\Delta V=V_2-V_1=4-10=-6\,m^3
\]
Step 4: Work done by gas:
\[
W=P\Delta V
\]
\[
W=50(-6)
\]
\[
W=-300\,J
\]
Step 5: Heat added:
\[
Q=100\,J
\]
Step 6: First law:
\[
\Delta U=Q-W
\]
\[
\Delta U=100-(-300)
\]
\[
\Delta U=400\,J
\]
Step 7: Hence internal energy increases by:
\[
\boxed{400\,J}
\]