152. One number has 21 divisors, and the other has 10 divisors. Find these numbers if their greatest common divisor is 18 and they have no prime divisors other than 2 and 3.
152. The sought numbers have the form $A=2^{x} \cdot 3^{y}$ and $B=$ $=2^{z} \cdot 3^{u}$.

According to the condition, we get $\left\{\begin{array}{l}(x+1)(y+1)=21 \\ (z+1)(u+1)=10\end{array}\right.$ and $(A, B)=2 \cdot 3^{2}$, from which we find: $x=6, y=2, z=1, u=4$.

Answer. 576 and 162.