Answer:
B should have been the winner. Since B received the majority of the votes, he should be the winner, not A, and it doesnt matter how close was the election or how cmany votes A got in reality. If B had more votes for 1st place, then it should be the winner, not A. I am assuming that there were electoral fraud and someone intentionally didnt count valid votes from B.