The school band sold cupcakes to raise money for new uniforms. Each of the 40 band members baked cupcakes to sell. They either baked chocolate or vanilla cupcakes.

Each student baked 24 cupcakes.
Each cupcake was sold for $2.
All of the cupcakes were sold.
A total of $1,200 was earned from the vanilla cupcakes.
How much did the band earn from the chocolate cupcakes?