Thought experiment about the constancy of the speed of light

Vs:

Vb: