Step-by-step explanation:
What we know:
Sa + Sb = 350 km
Ta + Tb = 4h
S = Vt
With these equations above we can write a system of equations and find Tb, as you see in the picture(s).
After having Tb you can easily find Ta and then Sa and Sb. Hopefully it was clear.