There are 12 slices of pizza, so each slice is 1/12 of the pizza. If she ate 1/6 of the pizza, or 2/12, then she ate two slices.
There are 10 slices left. Now each slice is 1/10 of the pizza, because there is less pizza, and the slices are the same size.
Her brother then ate 1/5, or, 2/10 of the pizza, leaving 8 slices.