To find the percentage of the week that James was sick, you can use the formula:
\[ \text{Percentage} = \left(\frac{\text{Number of sick days}}{\text{Total days}}\right) \times 100 \]
In this case, James was sick for 2 days out of a total of 5 days. Plugging in the numbers:
\[ \text{Percentage} = \left(\frac{2}{5}\right) \times 100 = 0.4 \times 100 = 40% \]
So, James was sick for 40% of the week.