From this, we can see that the total amount of students being asked = 12 + 8 + 6 + 4 = 30.
12 of 30 like rock, in percentages that is 12/30 = 40$
Full circle has 360 degrees.
40% * 360 degrees = 144 degrees
144 degrees should represent rock music on a pie chart.
Hope this helps!