If any no. is divisible by X then no. of states in min. DFA = 2*X
e.g. If a's divisible by 2 and input (a,b) then no. of states in min. DFA =2*2=4
If 2 no. is given like a's divisible by M and b's is divisible by N no. of states in min. DFA=M*N
e.g. If a's divisible by 3 , b's is divisible by 2 and input (a,b) then no. of states in min. DFA =2*3=6