Please help with the solution working.

2) Daniel, Ellie and Fatimah shared a box of cupcakes. Daniel took 1/4 of the box of cupcakes and 3 more cupcakes. Ellie took 2/3 of the remainder and 3 more cupcakes. Fatimah took the rest. If Fatimah took 4 cupcakes, how many cupcakes were there in the box at first?

4) Roslan, Shirleen and Lisa shared a tin of biscuits. Roslan took half the tin of biscuits and half a biscult. Shirleen took 1/2 of the remaining tin of

biscuits and half a biscult. Lisa took the rest. If Lisa received 10 biscuits, how many biscuits were there in the box at first?

Thanks in advance.