19. Decision of prescribed authority.

(a) dismissing the election petition; or
(b) declaring the election of all or any of the returned candidates to be void; or
(c) declaring the election of all or any of the returned candidates to be void and the petitioner and any other candidate to have been duly elected.
(a) that in fact the petitioner or such other candidate received a majority of the valid votes; or
(b) that but for the votes obtained by the returned candidate the petitioner or such other candidate would have obtained a majority of the valid votes, such authority shall after declaring the election of the returned candidate to be void, declare the petitioner or such other candidate, as the case may be, to have been duly elected.