Plz helpppp I will give the brainliest help me plz

Answer:
36
Step-by-step explanation:
Let the original quantity of marbles of the bag be y.
[tex]\frac{2}{3} (\frac{1}{2} )y=12[/tex]
y=36