Jill went inside a store and spent half of her money and 20.00 she then went inside a second store and spent half of her remaining money and 20.00 more. she was left with no money afterwards.

how much did she have when she went inside a store?

Total money=x. Spent in I store=(x/2)+20

Remaining amt=x-[(x/2)+20]=(x/2)-20
Spent in II store=1/2[(x/2)-20]+20
=(x/4)+10
Total expenditure is x
x=(x/2)+20+(x/4)+10
Or x=(3x/4)+30 Or x-3x/4=30
x/4=30 or x=120.
Check: Spent in I store =60+20=80. Remaining=40.
Spent in II store=40/2+20=40. Balance 0.