(d) In sample $x$ no impurity level seen, so it is undoped. In sample $y$ impurity energy level lies below the conduction bond so it is doped with fifth group impurity.
In sample $z$, impurity energy level lies above the valence band so it is doped with third group impurity