Let's define some notation first:
H= number of Hogwarts, R= number of robes, Q= number of Quidditch
We can set up the following equation for the total of clothing items:
[tex]H+R+Q=200[/tex]We also know that Q= 2R so we have:
[tex]H+3R=200[/tex]Now we can create an equation for the amount of money and we have:
[tex]12H+24R+36Q=6000[/tex][tex]12H+96R=6000[/tex]Now we can replace H=200-3R and we got:
[tex]12(200-3R)+96R=6000[/tex]And solving for R we got:
[tex]60R=3600[/tex][tex]R=\frac{3600}{60}=60[/tex]And then Q would be:
[tex]Q=2R=120[/tex]