Let's consider the following diagram:

The formula to calculate the electric field due to an infinitely long charged sheet is given by
Es=2ϵ0σ...(1)
The formula to calculate the electric field due to an infinitely long line charge is given by
El=2πϵ0rλ...(2)
Using equations (1) and (2), the electric field at P can be calculated as follows:
EP===∣2ϵ0σ−4πϵ01π32λ∣∣2ϵ0σ−6ϵ0λ∣6ϵ0σ...(3)
Similarly, the electric field at Q is given by
EQ===∣2ϵ0σ−4πϵ01π42λ∣∣2ϵ0σ−8ϵ0λ∣4ϵ0σ...(4)
Divide equation (3) by equation (4) to obtain the required ratio.
EQEP==4ϵ0σ6ϵ0σ64
Hence, a=6.