For each A selected there are five ways of selecting a B.. There are total 30 ratios that can be formed. Now for ‘1’ there are 5 numbers that can come in the numerator to form an integer.
For 2 there are 2 numbers and for 3 there is only one.
Therefore 30-5-2-1= 22 is the answer.