[tex]\frac{a}{12}=\frac{2}{b}=>a*b=2*12=24[/tex]
a = 1 => b = 24/1=24
b = 8 => a = 24/8 = 3
b = 6 => a = 24/6 = 4
a = 6 => b = 24/6 = 4