Relative Motion doubt

Why am I getting different answers in both the cases?
image.png
Was this page helpful?