.
A trader buys some eggs at #15 she find that five of them are broke.
She sells the rest of #20 each and make a profit of #340 how many eggs did she buy ?
~~~~~~~~~~~~~
Let x be the number of eggs she bought.
The buying cost was 15x monetary units.
She sold (x-5) eggs for the selling cost of 20*(x-5) monetary units.
Her profit was 340 monetary units.
It gives you this MONEY equation
Selling cost - Buying cost = profit,
or
20*(x-5) - 15x = 340.
Simplify and solve
20x - 100 - 15x = 340
20x - 15x = 340 + 100
5x = 440
x = 440/5 = 88.
ANSWER. She bought 88 eggs.
CHECK. Bying cost = 15*88. Selling cost = 20*83. The profit = Selling - Bying = 20*83 - 15*88 = 340. ! Correct !
Solved.