The Secretary of State, immediately after receiving the returns of an election, not longer than thirty (30) days after the election, shall sum up the whole number of votes given for each candidate other than candidates for state offices, legislative offices composed of one (1) county or less, county offices and county district offices, according to the statements of the votes certified to him or her and ascertain the person or persons having the largest number of votes for each office, and declare such person or persons to be duly elected; and thereupon all persons chosen to any office at the election shall be commissioned by the Governor; but if it appears that two (2) or more candidates for any district office where the district is composed of two (2) or more counties, standing highest on the list, and not elected, have an equal number of votes, the election shall be decided between the candidates having an equal number of votes by each candidate individually drawing one (1) of the two (2) sealed containers from an opaque bag, under the direction of the Governor and Secretary of State. The containers shall consist of a straw of conspicuous length, and the candidate drawing the container with the longer of the two (2) straws shall be declared the winner.