How does a candidate who is not a democrat or a republican get his or her name on the ballot for general election?

A.form a political party
B.join a caucus
C.seek help from a political machine
D.submit a petition