by majority. The candidate for each council post receiving a majority of all valid votes cast for such council post shall be declared as councilmember for the respective post for which he qualified as a candidate. The candidate receiving a majority of the votes cast for the office of mayor shall be declared elected as mayor.