What electron subshell is being filled for the rare

What electron subshell is being filled for the rare

(a) What electron subshell is being filled for the rare earth series of elements on the periodic table?
(b) What electron subshell is being filled for the actinide series?