ELement A has a valence electronic structure of ns2np1. Element B has the valence electronic structure of ns2np5.

If the value of n for element A is 3, what is the set of 4 quantum numbers that would describe the energy of the electron represented by np1?

I don't want to do your homework for you. However, you know
If N = 3, then
l (ell) may be 0, 1, or 2 (even numbers up to N-1)
Ml may be from +l(ell) to - l(ell) in whole numbers including zero.
Ms may be +/- 1/2.