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:
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:
thus, the total length in this case is 1 inch