$$6+2=8$$  $$8+8=16$$  $$16+16=32$$ 
There were some cupcakes in a bakery. First, Jade ate half of the cupcakes. Then, Neil ate half of the remaining cupcakes. Finally, Terry ate $6$ and there were $$2$$ cupcakes left. At beginning, how many cupcakes were there in the bakery? 
Options:
(a) $$24$$ 
(b) $$32$$ 
(c) $$48$$ 
(d) $$12$$ 