Fructose and galactose shunt to intermediates of glycolysis.
Fructose --> F-1-P --> DAP + GA; then the latter is phosphorylated --> DAP + G3P
Galactose --> Galactose-1-phosphate --> Glucose-1-phosphate --> Glucose-6-phosphate
These are essentially 'substrates' on the left side of the G6Pase equation and have nowhere else to go but forward, much of which will get sent to lactic acid via pyruvate.
And as the above poster has said, if they ask you why there's liver dysfunction/hepatomegaly/jaundice, it's due to phosphate depletion. Increasing the number of glycolytic intermediates requires phosphates to be put on those molecules, rather than elsewhere (e.g., glucose --> G6P), so the liver 'struggles' to compensate.