The school band has 30 songs in their repertoire. The band played 5 songs in their first set and 7 in their second set. The band will play 2 songs for their encore. Assuming the band plays through their entire repertoire, how many songs will they play on average in the third and fourth sets?
The band played 5 + 7 = 
<gadget id="calculator">5+7</gadget>
<output>12</output>
12 songs in their first two sets.
They have 30 - 12 = 
<gadget id="calculator">30-12</gadget>
<output>18</output>
18 songs left for the third set, fourth set and encore.
Since they played 2 songs in the encore, they have 18 - 2 = 
<gadget id="calculator">18-2</gadget>
<output>16</output>
16 songs to play on the third and fourth sets.
They will play 16 / 2 = 
<gadget id="calculator">16/2</gadget>
<output>8</output>
8 songs on average over the third and fourth sets.

<result>8</result>