When the train crosses a man walking in the same direction, the relative speed is \( v - 26 \). The time taken is 13 seconds, so:
\( L = (v - 26) \times 13 \).
When the train crosses a boy walking in the opposite direction, the relative speed is \( v + 18 \). The time taken is 11 seconds, so:
\( L = (v + 18) \times 11 \).
\[ (v - 26) \times 13 = (v + 18) \times 11 \]
Expanding both sides:
\[ 13v - 338 = 11v + 198 \]
Rearranging:
\[ 2v = 536 \]
Solving for \( v \):
\[ v = 268 \]
The speed of the train is 268 m/s.