Pls help me ik I already ask a question but I brought this book home and I had to do it

Answer:
X: 5 Feet
Y: 9 Feet
Step-by-step explanation:
( Y represents the height of the medium tree)
we know the height of tree x is half of the 10 ft tree so that means tree x is 5 feet tall
10 + 5 + y = 24
15 + y = 24
y = 9
Hope this helped :)