The same heat input can split into work and internal energy in several exact ways. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Most energy can stay internal
A 20 joule input can split into 4 joules of work and 16 joules of internal-energy change.
Qin=4J+16J=20J
The middle split still closes
The middle row uses 12 joules of work and 8 joules stored internally.
Qin=12J+8J=20J
More work leaves less internal storage
The third row sends 16 joules to work and only 4 joules to internal energy. The total stays fixed.