Alex and Dave shared some apples. Alex had twice as many apples as Dave. When Dave gave 10 apples to Alex, he had 8 times as many apples as Dave in the end. Find the number of apples Alex had at first.
Let's assume Dave had \(x\) apples at first.
⇒ Alex had = \(2x\) apples
When Dave gave 10 apples to Alex, he had 8 times as many apples as Dave in the end.
∴ According to question,
\(2x+10=8(x-10)\)
\(2x+10=8x-80\)
\(6x=90\)
⇒\(x=15\)
Thus, Alex had 30 apples at first.