Let the speed of the first train be $s_1$ km/h.
Let the speed of the second train be $s_2 = 90$ km/h.
Both trains travel the same distance: $d = 360$ km.
Time taken by the second train:
\[
t_2 = \frac{360}{90} = 4 \text{ hours}
\]
The first train takes 4 hours more than the second:
\[
t_1 = t_2 + 4 = 4 + 4 = 8 \text{ hours}
\]
Speed of the first train:
\[
s_1 = \frac{360}{8} = 45 \text{ km/h}
\]
Verification:
If $s_1 = 45$ km/h, then time = $360 / 45 = 8$ hours.
Time difference = $8 - 4 = 4$ hours. Matches the condition.
Final Answer:
\[
\boxed{45 \text{ km/h}}
\]