We can find the new percent using a rule of three in both cases. In the first case, we have that the segment AB measures 4 inches and it's 25% of the whole segment. Then:
[tex]\begin{gathered} 4in\rightarrow25\% \\ x\rightarrow100\% \\ \Rightarrow x=\frac{100\cdot4}{25}=\frac{400}{25}=16 \\ x=16 \end{gathered}[/tex]
therefore, the total length is 16 inches.
In the second case, the segment AB represents the 400% of the whole segment, then we have the following:
[tex]\begin{gathered} 4in\rightarrow400\% \\ x\rightarrow100\% \\ \Rightarrow x=\frac{100\cdot4}{400}=\frac{400}{400}=1 \\ x=1 \end{gathered}[/tex]
thus, the total length in this case is 1 inch