Question 1184392
<pre>

>>>Jane had some sweets and chocolates,

They were in the ration S:C or {{{S/C=1/1}}}

>>>if Jane gives 24 sweets away, the number of sweets and chocolates left became 4:1, 

{{{(S-24)/C=4/1}}}

>>>if Jane  gave 20 chocolates away, the ratio of the number of sweet to the number of chocolates left became 5:1, 

{{{(S-20)/C=5/1}}}

>>>Find the total number of sweets and chocolates Jane had at first.

Solve the system:

{{{system((S-24)/C=4/1,(S-20)/C=5/1)}}}

Simplifying:

{{{system(S-24=4C,S-20=5C)}}}

Solve by any method and get S=40, C=4.

Edwin</pre>