How is Hess's law applied in calculating enthalpy?

all the reactions in a paht are added together