The synthesis of glucose-6-phosphate and 6-phosphogluconate.