Let the speed of train and bus be u km/h and v km/h respectively.
According to the given information,
60u+240v=4 ... (i)
100u+200v=256 ... (ii)
Putting 1u=p and 1v=q in the equations, we get
60p + 240q = 4 ... (iii)
100p+200q=256
600p + 1200q = 25 ... (iv)
Multiplying equation (iii) by 10, we get
600p + 2400q = 40 .... (v)
Subtracting equation (iv) from (v), we get;
1200 q = 15
q=15200=180 ... (vi)
Putting the value of q in equation (iii), we get
60p + 3 = 4
60p = 1
p=160
p=1u=160 and q=1v=180
u = 60 and v = 80
Hence, speed of train = 60 km/h and speed of bus = 80 km/h