And if both reference frames are moving,
From the post "Thought Experiment Gone Wrong" dated 17 Nov 2017,
x′=x−vt√1−v2
So,
x″=x′−v′t√1−v′2
It is tempting to substitute one into the other, and get
x"=x−vt√1−v2−v′t√1−v′2
in this case, v′ is the speed measured in x′ frame not x. Every unit in x′ as measured in x is scaled by the factor 1√1−v2. Instead we should have,
x"=x−vt−v′t√(1−v2)(1−v′2)=x−(v+v′)t√(1−v2)(1−v′2)
where v′ is also scaled by 1√1−v2,
v′→v′√1−v2.
Do we scale v′ again in the denominator? No. The scaling factor from x" to x′ does not get scaled again. The translation term get scaled.
Just for the fun of it...