Step 1: Find Ajay's position from left end.
Total = 40 children
Ajay's position from right = 18
Thus, from left:
\[
40 - 18 + 1 = 23
\]
Ajay is 23rd from the left.
Step 2: Find Satish's position.
Satish is 8th to the right of Ajay, so:
\[
23 + 8 = 31
\]
Step 3: Conclusion.
Thus, Satish is 31st from the left end.