To find out what percent 2 is of 40, you can use the formula:
\[ \text{Percentage} = \left( \frac{\text{Part}}{\text{Whole}} \right) \times 100 \]
In this case, the part is 2 and the whole is 40:
\[ \text{Percentage} = \left( \frac{2}{40} \right) \times 100 \]
Calculating the fraction:
\[ \frac{2}{40} = 0.05 \]
Now, multiply by 100 to get the percentage:
\[ 0.05 \times 100 = 5 \]
Therefore, 2 is 5% of 40.
The answer is: 5%.