Here is the full question from problem,
What are the magnitude and direction of the electric field that will balance the weight of the following?
For an electron/proton we use the equation $qE = mg$. Therefore the answer for magnitude would just to multiply the mass of an electron/proton by 9.8. But how come the direction for electron is upward, and proton is downward?