Answer
See the answer below.
Work Step by Step
In order to create the noble gas configuration, look for the noble gas that comes before the given element. Then, starting at that element, write the correct electron configuration.
a) Sm, 6th lanthanide: $[Xe]\ 4f^6\ 6s^2$
b) Yb, 14th lanthanide: $[Xe]\ 4f^{14}\ 6s^2$