The correct option is B the law of conservation of energy
The first law of thermodynamics states that:
Q=ΔU+w
Heat supplied goes into increasing internal energy and work done by gas.
Upon interpretation, we get the law of conservation of energy.
The first law of thermodynamics is based on the law of conservation of energy.