The key in understanding how the process works comes through the 12th Amendment to the Constitution, but also the 1887 Electoral Count Act which streamlined the contestation process.