Solution:
When the party distribution is 6-6, the situation can change (to 3-9) only when a group of three contains three people from the same party, and the remaining three are distributed evenly across the other three groups (to be converted).
To compute the probability, we assume that the groups and the members of the group are ordered (so there are 12! ways of grouping). There are 2 ways to choose the party, 4 ways to choose the group, 6⋅5⋅4 ways to choose the three members of the group, 9⋅6⋅3 ways to place the other three members of the party, and 6! ways to fill in the members of the other party. The probability is then
12!2⋅4⋅6⋅5⋅4⋅9⋅6⋅3⋅6!=12⋅11⋅10⋅9⋅8⋅72⋅4⋅6⋅5⋅4⋅9⋅6⋅3=7718
This means that the shift in distribution will happen in 1877 hours on average.
When the distribution is 3-9, the situation can change (to 0-12) only when the three members of the minority party are all in different groups. Using the similar method as above, there are 12⋅9⋅6 ways to place the three members and 9! ways to place the rest, so the probability is
12!12⋅9⋅6⋅9!=12⋅11⋅1012⋅9⋅6=5527
This means that the shift in distribution will happen in 2755 hours on average.
By linearity of expectation, we can add up the two results and get that the expected value is 1877+2755=54341 hours.