How does the electoral and popular vote work?