When a system is taken from state A to state B along the path ACB, 80 J of heat flows into the system and the system does 30J of work. How much heat flows into the system along the path ADB if the work done is 10J?