The treasurer, secretary of the state, and comptroller shall canvass publicly the votes for senators and representatives. The person in each senatorial district having the greatest number of votes for senator shall be declared to be duly elected for such district, and the person in each assembly district having the greatest number of votes for representative shall be declared to be duly elected for such district. The general assembly shall provide by law the manner in which an equal and the greatest number of votes for two or more persons so voted for for senator or representative shall be resolved. The return of votes, and the result of the canvass, shall be submitted to the house of representatives and to the senate on the first day of the session of the general assembly. Each house shall be the final judge of the election returns and qualifications of its own members.