How did the plebeians gain the right to vote and hold political office in the Roman Republic?

They threatened to leave Rome and build a new city.

They attacked the Senate and began a bloody civil war.

They refused to work on the large farms of the patricians.

They created an alliance with Rome's enemies and attacked the city.