Olivia baked a batch of 48 cookies. She wanted to divide them equally among her 3 friends. After giving each friend their share, she realized she had 2 extra cookies left. She decided to eat those 2 extra cookies. How many cookies did each friend receive, and how many cookies did Olivia eat in total? Let's think step by step and output the final answer within \boxed{}.
user