Giải:
Ta có:\(\dfrac{a}{b}=1\dfrac{1}{2}=\dfrac{3}{2}\Rightarrow\dfrac{a}{3}=\dfrac{b}{2}\)
Đặt \(\dfrac{a}{3}=\dfrac{b}{2}=k\Rightarrow\left\{{}\begin{matrix}a=3k\\b=2k\end{matrix}\right.\)
Mà \(a-b=8\)
\(\Rightarrow3k-2k=8\)
\(\Rightarrow k=8\)
\(\Rightarrow\left\{{}\begin{matrix}a=24\\b=16\end{matrix}\right.\)
Vậy a = 24, b = 16