To determine how many words James can type in 30 seconds, we first need to calculate his typing rate.
From the information, we know that James types 40 words in 20 seconds. To find out his typing rate, we can calculate the words per second:
\[ \text{Typing rate} = \frac{40 \text{ words}}{20 \text{ sec}} = 2 \text{ words/sec} \]
Now, we can use this rate to find out how many words he can type in 30 seconds:
\[ \text{Words in 30 seconds} = 2 \text{ words/sec} \times 30 \text{ sec} = 60 \text{ words} \]
Thus, the answer is 60.