I use the titration formula eAMAVA = eBMBVB I'm not sure why this isn't used in books for acids or bases that have multiple protons or hydroxides to donate. A is for acid, B is for base. The eA stands for the number of H+ available in the acid (HCl e=1, H2SO4 e=2) and eB (NaOH e=1, Mg(OH)2 e = 2). Now carbonate and bicarbonate are a little tricky, but the mechanism for neutralization is that they both "neutralize" the HCl by forming H2CO3 (Of course this is an acidic end point, hence use of methyl red). HCO3- can neutralize one H+, so it has an eB of 1 and carbonate has an eB of 2 (e stands for equivalence. Note NH3 has an eB of 1)
All right, so how do you deal with the mixture? You don't! Just solve for VA treating each bases separately and add the volumes of HCl needed to neutralize them. VB is the same for each base.
Bicarbonate MAVA= MBVB and for Carbonate MAVA= 2MBVB
Good luck!