1) vc=(s1+s2)/(t1+t2)
s1=s/3 s2=2*s/3
t2=2*s/(3*v2)=3*t/4
t=8*s/(9*v2)
t1=t/4=2*s/(9*v2)
vc=(s/3+2*s/3)/(2*s/(9*v2)+2*s/(3*v2))=9*v2/8=9*40/8=45 км/ч
===============================
2) t1=s/(3*v1) t2=2*s/(3*2*vcp)
vcp=3*vcp*v1/(vcp+v1)
vcp=2*v1=2*30=60 км/ч
v2=2*vcp=2*60=120 км/ч
==========================