I am attaching an image with explanation. I added in red labels like
(STEP NUMBER) <value in inches>
The STEP helps you follow the sequence of deductions, starting from dividing 24 by 4 to get "(1) 6 in" and so on from there. Lmk if there's something unclear.
The length is 9"