The marching band is having a donut sale to raise money for new uniforms. Glazed donuts cost $6.99 per dozen and sprinkle donuts cost $8.99 per dozen. If the band made a total of $308.63 and sold 12 dozen glazed donuts, how many dozen sprinkle donuts did they sell? Write a linear equation and solve.