The formula for speed is given by:
\[
\text{Speed} = \frac{\text{Distance}}{\text{Time}}.
\]
The speed of the train is 36 km/h, which is equal to \( \frac{36 \times 1000}{3600} = 10 \, \text{m/s} \).
Time taken to pass the person is 8 seconds, so the distance (which is the length of the train) is:
\[
\text{Length of the train} = \text{Speed} \times \text{Time} = 10 \, \text{m/s} \times 8 = 80 \, \text{meters}.
\]