Let $g=\gcd(a,b)$ and $L=\operatorname{lcm}(a,b)$, so $ab=gL$, $g\mid L$, and $a=ga'$, $b=gb'$ with $a'b'=\frac Lg$ and $\gcd(a',b')=1$. The equation becomes $gL+30=9L+6g$, i.e.\ $(g-9)(L-6)=24$ (Theorem 106).
Positive $g-9$: $(g,L)=(10,30),(11,18),(12,14),(13,12),(15,10),(17,9),(21,8),(33,7)$; only $(10,30)$ has $g\mid L$. Negative $g-9\in\{-6,-8\}$ (others make $L\le0$): $(3,2)$ fails, $(1,3)$ works.
$(g,L)=(10,30)$: $a'b'=3$, $2$ pairs; $(1,3)$: $2$ pairs. Total $\boxed{4}$.