Tom is before the boy in the blue shirt, which means Tom is one position ahead of the boy in the blue shirt.

Find the boy in the blue shirt in the row. Count his position, then subtract 1 to find Tom's position. The boy in blue is 5th, so Tom is 4th.

Final Answer: 4th