I was bored today and went on a random learning binge (I haven't touched this topic before today in a good decade since high school), and got stuck with this scenario I created for myself:
[I let myself assume c = 100m/s so the numbers would be "nicer" and make things easier to digest... I believe that doesn't invalidate the math if you stay consistent]
As in the picture, assume there is a long, 100 meter long tube that emits light at one end, and then detects it at the other. Since we assume c=100m/s for simplicity, it'll take 1 second for a pulse of light to traverse the tube.
But now we find out that relative to some observer on the ground, the tube is flying by at $0.8c = 80m/s$.
My goal was to try and find all measurements from the other reference frame and show myself that the Lorentz transformations end up preserving the speed of light in both reference frames.
So I figured:
the Earthbound observer would see more time pass than someone in the tube's frame of reference. Applying the Lorentz factor, I got that if the tube works and spends 1 second doing its thing, at 0.8c, the Earthbound observer would see a time of 1.67seconds pass.
Lorentz factor $(\gamma) = \frac{1}{\sqrt( 1 - 80^2/100^2 )} = 1.66666666 $
Since the Earthbound observer is watching the tube move at 0.8c = 80m/s, and sees it doing so for 1.67 seconds, they'd conclude the tube traveled a distance of about 133.6 meters.
On top of this, the Earthbound observer would see the tube be length contracted, from 100m to 60m.
From these things, I come to the conclusion that from the Earthbound observer's frame, the pulse of light has 1.67 seconds to leave one end of the tube and make contact with the other end, which at that point would be 133.6 + 60 = 193.6 meters away.
But that gives a speed for the light pulse of $\frac{ 193.6 }{ 1.67} = 116m/s$
If I did things right and understood the scenario, I should have gotten 100m/s again, since that's what I set as the "speed of light".
I didn't get that, so I'm messing something up, and as random and irrelevant as it is to my life, if I can't figure out why I don't understand, it'll never leave me alone.
Any help would be greatly appreciated!