Let RS be denoted as y.
Given that T is the midpoint of RS, this results in RT = TS = 
And W acting as the midpoint of RT, leads to
thus RW = WT = 
Given that Z is the midpoint of WS.
Meaning WZ = ZS = 
Consequently, TZ = TS - ZS = 
However, TZ is defined as x.
Thus, 
y = 8x = RS.
A) Length of RW = 
B) Length of WZ = 
C) Length of RS = y = 8x
D) Length of ZS = WZ = 3x.
An image is provided for clarification.
Let x represent the number of caps
cost per cap = $6
cost for x caps = 6x
shipping charge = $25
overall budget = $1000
We can set up the following inequality:
Because the total amount cannot exceed 1000, we have
25 + 6x ≤ 1000
6x ≤ 975
x ≤ 162.5
rounding,
x ≤ 163
This means she can purchase a maximum of 163 caps.