Step-by-step explanation:
The magnetic force acting on a charged particle is :
Here q = +q (for proton)
v is in +x direction
B is in +y direction.
So,
It is clear that the magnetic force is acting +z direction. So, to balance the magnetic force with an electric force so that the proton will continue along a straight line, the electric force must act in -z direction.