What is the purpose of gerrymandering?

A. To elect a nominee for each party
B. To dilute the voting power of the opposing party
C. To ensure that each district has an equal population
D. To increase the number of senators from a state

B. To dilute the voting power of the opposing party