v1=40km/h
v2=60km/h
v=?
v=s/t -> t=s/v
t1=s1/v1 t2=s2/v2
t1=s/v1 t2=s/v2
t=t1+t2
t=s/v1 + s/v2
t=s*v2/(v1*v2) + s*v1/(v1*v2)
t=(s*v1+s*v2)/(v1*v2)
t=s*(v1+v2)/(v1*v2)
v=(s1+s2)/(t1+t2)
v=(s+s)/t
v=2*s/t
v=2*s/[s*(v1+v2)/(v1*v2)]
v=2*/[(v1+v2)/(v1*v2)]
v=2*(v1*v2)/(v1+v2)
v=2*(60*40)/(60+40)
v-2*2400/100
v=48 km/h