The sum of an infinite geometric progression is given by:
\[
S = \frac{a}{1 - r}
\]
where \( a \) is the first term and \( r \) is the common ratio.
We know that the sum \( S = 18 \), so:
\[
\frac{a}{1 - r} = 18
\]
Also, the sum of the squares of the terms is given by:
\[
S_{\text{sq}} = \frac{a^2}{1 - r^2} = 81
\]
By solving these two equations, we find that the first term \( a = 7.2 \) and the common ratio \( r = 0.6 \).