Maybe take a step back, choose a simpler scenario, clearly define everything: which reference frame measures which thing, which objects have which speed RELATIVE to each other, ...
Do not forget, that each object can regard itself at rest and each object sees the light going at c.
For example...