From the graph,
Increase in concentration of C is thrice the decrease in concentration of A.
Decrease in concentration of B is twice the decrease in concentration of A.
⇒ 1 mole of A reacts with two moles B to give three moles of C.
So n=2,m=3 and n+m=2+3=5