Answer:
54
Step-by-step explanation:
Let the initial amount of sweets be x
Jane ate two-thirds of them = 
Remaining sweets = 
= 
The next day she ate two-thirds of the remainder i.e. 
Remaining sweets = 
=
The following day she ate two-thirds of the remaining candy before stopping.
She ate =
Remaining sweets = 
Now we are given that Only 2 pieces of candy were left
So, 


Hence she has given 54 sweets in the beginning.