As both are moving in same direction
[tex]\\ \bullet\sf\longmapsto R_{AB}=R_A+R_B[/tex]
[tex]\\ \bullet\sf\longmapsto R_{AB}=30+40[/tex]
[tex]\\ \bullet\sf\longmapsto R_{AB}=70m/s[/tex]
[tex]\\ \bullet\sf\longmapsto R_s=R_{AB}\times t[/tex]
[tex]\\ \bullet\sf\longmapsto R_s=70(240)[/tex]
[tex]\\ \bullet\sf\longmapsto R_s=16800m[/tex]