The average of three numbers, X, Y, and Z is 24. The ratio of X to Y to Z is 2 : 5 : 1. <hr> X is <input min="0" type="number" id ="imp5pg154q3_1" class="lineinput" placeholder="?" /> <br> Y is <input min="0" type="number" id ="imp5pg154q3_2" class="lineinput" placeholder="?" /> <br> Z is <input min="0" type="number" id ="imp5pg154q3_3" class="lineinput" placeholder="?" />