Maria has a box of apples. She counted a total of 12 apples of two different varieties: Granny Smith and Gala. She counted 5 Granny Smith apples. How many Gala apples does she have?
Let the number of Gala apples be represented by the variable $G$. We can set up an equation based on the total:
$$G + 5 = 12$$
Based on this information, what is the value of $G$?