$$\require{cancel}$$
Thumbnail: Different thermodynamic paths taken by a system in going from state A to state B. For all transitions, the change in the internal energy of the system $$ΔE_{int}=Q−W$$ is the same.