Glycolysis breaks down glucose (6-C) into two molecules of pyruvate (3C), and also produces:
To break (oxidize) Glucose, it is necessary to destabilise it. To do so, 2 ATP are used by certain enzymes to attach a phosophate group to the glucose. This makes it very unstable, and easily broken down.
When ADP gets phosophorylated to become ATP, 2 of them are produced for each 3 carbon molcule.
4 overall ATP produced - 2 used ATP for phosphorylation=2 NET ATP