In the beginning, Justine had 10 more rubber bands than Bailey but 2 fewer bands than Ylona. Bailey decided to give two bands each to Justine and Ylona so that he is left with only 8 rubber bands. How many rubber bands did Ylona have in the beginning?
Bailey gave 2 + 2 = 
<gadget id="calculator">2+2</gadget>
<output>4</output>
4 bands.
So Bailey had 8 + 4 = 
<gadget id="calculator">8+4</gadget>
<output>12</output>
12 bands in the beginning.
Justine had 12 + 10 = 
<gadget id="calculator">12+10</gadget>
<output>22</output>
22 bands in the beginning.
Thus, Ylona had 22 + 2 = 
<gadget id="calculator">22+2</gadget>
<output>24</output>
24 bands in the beginning.

<result>24</result>