Alice has a collection of colored marbles. She has red, blue, and green marbles in the following quantities:
- Red marbles: 12
- Blue marbles: 8
- Green marbles: 5
If Alice gives away a total of $x$ marbles, where $x$ is the number of blue marbles she has, how many marbles will she have left?
Which equation represents the number of marbles Alice has after giving away the blue marbles?