Let VA be the magnitude of velocity of A wrt ground,
VB be the magnitude of velocity of B wrt ground,
VAB be the magnitude of velocity of A wrt B.
When the bodies move toward each other.
VAB=VA+VB
1610=VA+VB
⇒VA+VB=1.6...........(1)
When velocity of B is reversed , then
VA−VB=35
VA−VB=0.6..........(2)
From (1) and (2)
2VB=1
VB=1020
⇒x=20