Answer:
54
Explanation:
Let the initial amount of sweets be x
Jane ate two-thirds of them =
![(2)/(3)x](https://img.qammunity.org/2020/formulas/mathematics/middle-school/1fbiftd2tdd7xpdl42fmvhhghv6046gd8c.png)
Remaining sweets =
![x-(2)/(3)x](https://img.qammunity.org/2020/formulas/mathematics/high-school/hsz4exh700m3ehfpv9ijev0tvd2xlg9gg9.png)
=
![(1)/(3)x](https://img.qammunity.org/2020/formulas/mathematics/high-school/3fzsio9idlmzzn7ga4xikjddswgnt5nvvs.png)
The next day she ate two-thirds of the remainder i.e.
![(2)/(3) * (1)/(3)x =(2)/(9)x](https://img.qammunity.org/2020/formulas/mathematics/high-school/bzfeeo0mryt71ddspoeqjh0gdiw4otmct7.png)
Remaining sweets =
![(1)/(3)x-(2)/(9)x](https://img.qammunity.org/2020/formulas/mathematics/high-school/zznc32xwr2i5lllmrec9jtk50ucvmr1hqo.png)
=
The following day she ate two-thirds of the remaining candy before stopping.
She ate =
Remaining sweets =
![(1)/(9)x-(2)/(27)x=(1)/(27)x](https://img.qammunity.org/2020/formulas/mathematics/high-school/s82i4jiyyqa3mm40iiq1emn5udhffrt0d5.png)
Now we are given that Only 2 pieces of candy were left
So,
![(1)/(27)x=2](https://img.qammunity.org/2020/formulas/mathematics/high-school/f3a8g3noct29lu2ex2i4jfl0j0w89nbewh.png)
![x=2 * 27](https://img.qammunity.org/2020/formulas/mathematics/high-school/k97zmfe7eef7cyjj2oz4n7or25jath0dne.png)
![x=54](https://img.qammunity.org/2020/formulas/mathematics/middle-school/etbyql8po6d6lquitpmehvpd5tquejko40.png)
Hence she has given 54 sweets in the beginning.