Answer:
1/4896
Step-by-step explanation:
This is a permutation problem, where order matters.
There are 18! ways to line up the class, and (18−3)!=15! ways where three children line up first, second, and third.
Then the probability is
P=15!18!=14896≈0.0002