Here length contraction will take place when we travel with speed comparable to speed of light
L=Lo1−v2c2L=L_o\sqrt{1-\frac{v^2}{c^2}}L=Lo1−c2v2
L=Lo1−(0.8c)2c2=Lo×0.6L=L_o\sqrt{1-\frac{(0.8c)^2}{c^2}}=L_o\times 0.6L=Lo1−c2(0.8c)2=Lo×0.6
t=L/vt=0.6Lo/0.8cLo=0.8c×30hrs0.6=40c.hrst=L/v\\t=0.6L_o/0.8c\\L_o=\frac{0.8c\times30hrs}{0.6}=40c.hrst=L/vt=0.6Lo/0.8cLo=0.60.8c×30hrs=40c.hrs
in the second case the speed is 0.9c then
L=Lo1−0.81c2c2=0.43LoL=L_o\sqrt{1-\frac{0.81c^2}{c^2}}=0.43L_oL=Lo1−c20.81c2=0.43Lo
t=Lv=0.43Lo0.9c=0.43×40c.hrs0.9c=19.11hrst=\frac{L}{v}=\frac{0.43L_o}{0.9c}=\frac{0.43\times40c.hrs}{0.9c}=19.11 hrst=vL=0.9c0.43Lo=0.9c0.43×40c.hrs=19.11hrs