Two ATPs get used up in the 1st and 3rd reactions of glycolysis, but 4 ATPs are created in the 7th and 10th. So, overall 2 ATPs are created (4 created - 2 used up).