\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
A cup contains \(x\) marbles. Next to the cup, there are 2 marbles outside. Write an algebraic expression for the total number of marbles.