Answer:
The 40th number in the pattern is 9
Explanation:
If the pattern repeats after every 4 numbers, then the number 9 can be found at the 4th, 8th, 12th etc. position. Therefore, the positions of number 9 are multiples of 4.
40 is the only multiple of 4, therefore, the 40th number in the pattern is 9.