Maria has a pen and a pencil. She bought the pen for half the price of the pencil. The pencil cost her $8. How much did Maria pay for both the pen and the pencil?
Please reason step by step, and put your final answer within \boxed{}.
user