Explain how in glycolysis that the spitting of one gluclose molecule results in 4 ATP but there is only a net gain of 2 ATP

Answer :

Although four ATP molecules are produced in the second half, the net gain of glycolysis is only two ATP because two ATP molecules are used in the first half of glycolysis.