The amount invested in the \( 3\% \) fund is:
\[
\boxed{x = 666.67}
\]
The amount invested in the \( 4\frac{1}{2}\% \) fund is:
\[
18000 - 666.67 = 17333.33
\]
Thus, the final amounts are:
\[
\boxed{x = 666.67} \quad \text{and} \quad \boxed{18000 - x = 17333.33}
\]