# Fermi energy level

Si is doped with 6 x 1015 cm-3 donors and 2 x 1015 cm-3 acceptors. Find the position of the Fermi level with respect to Ei at 300 K.

i know the equations are
(for n-type) EF = kT ln(ND/ni) + Ei
(for p-type) EF = kT ln(ni/NA) + Ei

however, since the problem gives me both donors and acceptors, how do i know which one to use? i am thinking since there are more donors than acceptors, i use the equation for n-type...not sure if this is correct though.

$$n'_{\text{donor}} = n_{\text{donor}} - n_{\text{acceptor}}$$