
$F=\frac{\mu}{4 \pi} \times \frac{2 I _1 L _2 \times 1}{a}$
Since, the current carrying conductors will attract each other, while electron beams will repel each other.Thus, the force is attraction between $A$ and $B$, is repulsion between $x$ and $y$.
[use $m _{p}=1.6 \times 10^{-27} kg , e =1.6 \times 10^{-19} C$ ]