Matematiken som tar Sverige till fotbolls-EM.