To find the value of \( n \) given that \( \frac{2}{5} \) of \( n \) is 18, you can set up the equation:
\[ \frac{2}{5}n = 18 \]
To solve for \( n \), multiply both sides of the equation by the reciprocal of \( \frac{2}{5} \), which is \( \frac{5}{2} \):
\[ n = 18 \times \frac{5}{2} \]
\[ n = 18 \times 2.5 \]
\[ n = 45 \]
So, the value of \( n \) is 45.