Concept:
An inductor stores electrical energy in the form of magnetic energy when current flows through it.
The energy stored in an inductor is given by
\[
U=\frac12 LI^2
\]
where
\[
L=\text{Inductance}, \qquad I=\text{Current}
\]
Also, magnetic flux linkage is related to inductance by
\[
\lambda = LI
\]
Using these two relations, we can determine the magnetic flux linked with the inductor.
Step 1: Write the given data.
Energy stored:
\[
U=18\,\text{mJ}=18\times10^{-3}\,\text{J}
\]
Current:
\[
I=3\,\text{A}
\]
Step 2: Calculate the inductance of the coil.
Using
\[
U=\frac12 LI^2
\]
Substituting the given values,
\[
18\times10^{-3}
=\frac12 L(3)^2
\]
\[
18\times10^{-3}
=\frac92L
\]
\[
L=\frac{36\times10^{-3}}{9}
\]
\[
L=4\times10^{-3}\,\text{H}
\]
\[
L=4\,\text{mH}
\]
Step 3: Determine the magnetic flux linkage.
\[
\lambda =LI
\]
\[
=(4\times10^{-3})(3)
\]
\[
=12\times10^{-3}\,\text{Wb}
\]
\[
=12\,\text{mWb}
\]
Step 4: Write the final answer.
Hence the magnetic flux linked with the inductor is
\[
\boxed{12\,\text{mWb}}
\]