AUGUSTA, Maine (AP) — Barack Obama and Angus King were among the winners in a mock election that tallied votes from more than 40,000 students across Maine.

The Maine secretary of state's office, which ran the mock election, said President Obama was the choice of 61 percent of the student voters. Republican challenger Mitt Romney got 34 percent of the votes.

In the U.S. Senate race, independent Angus King got 43 percent of the vote; Republican Charlie Summers got 24 percent and Democrat Cynthia Dill received about 20 percent.

More than 67 percent of the students voted in favor of legalizing same-sex marriage.

The student choices in the mock election matched the results of last Thursday's general election.