Question 726688
Let x be the number of learners in the original class.
Then (200/x) is the original cost of the pie.

{{{200 = (200/x+2)(x-5)}}}
{{{200 = 2x+190-1000(1/x)}}}
{{{100 = x+95-(1/x)500}}}
{{{0 = x-5-(1/x)500}}}
{{{0 = (1/x)(x^2-5x-500)}}}
{{{0 = (1/x)(x-25)(x+20)}}}
∴ x=25, x=-20, though the negative answer does not make sense
∴ There are 25 learners in the original group.