Answer
$B_1$ is into the page.
$B_2$ is out of the page.
Work Step by Step
When the electron first enters the region of $B_1$, the force on the electron is downward. By the right hand rule, the direction of the magnetic field $B_1$ is into the page.
When the electron first enters the region of $B_2$, the force on the electron is downward. By the right hand rule, the direction of the magnetic field $B_2$ is out of the page.