(3x)? +(4x)? =40?
25x? = 1600
x? =64
X=8 or x=-8 (truncated)
So after 8 seconds, the two points are 40cm apart.