Normally, we consider speed as distance divided by time, but the distance is assumed to be the same here. So consider this in the form of Y=mX+b where m is tge scale of distance traveled/time and b is used for start day.
A = X/200
B = -x/150 - 30
So you just need to solve for X here:
X/200 = -X/150-30
Math is a language, and you need to translate it in your head to English like any other.