Under the 1979 constitution, in order to be elected president on the first ballot a candidate needed to receive both the most votes nationwide and at least 25% of the vote in two-thirds of the states. However, at the time of the election, Nigeria had nineteen states, two-thirds of which in exact figures is 12.66. A dispute thus ensued over whether Shehu Shagari had received the necessary threshold by winning 25% in twelve states and 20% in Kano State, which Shagari claimed was two-thirds of the required 25% threshold and represented the remaining 0.66 in the constitutional threshold. Obafemi Awolowo claimed that the threshold should be rounded up to thirteen states, which Shagari had not met. The Supreme Court of Nigeria ruled in favour of Shagari.[4]