In given figure, when a thermodynamic system is taken from state `A` to state `B` via path `ACB,100` cal of heat given to the system and `60cal` work is done by the gas. Along the path `ADB`, the work done by the gas is `20cal`. Find the heat flowing into the system in this case?