I can see that denitrification consists of processes involving mainly two steps:
Step 1 (nitrate to nitrite): $$ \ce{3NO3- + CH3OH -> 3NO2- + CO2 + 2H2O} $$
Step 2 (nitrite to molecular nitrogen): $ \ce{2NO2- + CH3OH -> N2 + CO2 + H2O + 2OH-} $$
Total reaction is supposed to be:
$$ \ce{6NO3- + 5CH3OH -> 3N2 + 5CO2 + 7H2O + 6 OH-} $$
Now I'm a bit rusty.
As far as I can remember, the right hand side on the first step of the reaction will be the starting point for the left hand side of step 2 in the overall reaction process.
In other words, what is present on the right hand side of step 1 and on the left hand side of step 2 can be subtracted from each other (which is logical). Also, the start of the total reaction would be represented by the left hand side of step 1 and the end of the total reaction would be represented by the right hand side of step 2.
The coefficients 5 and 7 seem very strange, but they balance everything so that makes sense. However the balancing of the Os seem to be the challenging part.
The attempt yields:
$$ \ce{3 NO3- + CH3OH -> N2 + CO2 + H2O + 2OH-} $$
Balancing N:
$$ \ce{6NO3- + CH3OH -> 3N2 + CO2 + H2O + 2OH-} $$
C and H atoms are already balanced.
However balancing O is more complicated because changing any of the Os affects the balance of the others (like C, H). Are there any recommendations for easing out that process or methods that can be applied in general?