How do you know the mole ratio by the equation- that's all I need to know

Answer:
The amount of moles in the numerator should be the coefficient of what you are finding.
The amount of moles in the denominator should be the coefficient of that you already have.