There are four quantum numbers that describe the placement of electrons in an atom's electron cloud: principal quantum number (n), angular quantum number (l), magnetic quantum number (ml) and electron spin number (ms). When presented, they are written as (n, l, ml, ms).
From the given set, they have same n and l quantum numbers. The n represents the shell, the l as subshell, ml is the orientation in space and ms is the direction of the spin. Therefore, these two electrons of the atom share a subshell but differ in the shape of the orbital only.