According to Gauss theorem, it can be written as,
∮→E⋅d→s=qε0
∮E0(xL)⋅d→x=qε0
E0L×(x22)L0=qε0
q=E0L2ε0