Let the electric fields due to plates P1 and P2 are E1 and E2.
The net electric field between the plates is given as,
E=E1−E2
=σ1ε0−σ2ε0
The force on the charge due to the electric field is given as,
F=qE
=q(σ1−σ2)ε0
The work done by the electric field is given as,
W=F×d×cosθ
W=q(σ1−σ2)ε0×d×cos(π4)
W=qd(σ1−σ2)ε0√2
Thus, the work done by the electric field is W=qd(σ1−σ2)ε0√2.