Sam has some apples and oranges. He knows he has 12 pieces of fruit in total. If the number of apples is represented as $a$ and the number of oranges as $o$, he can write the equation:
Equation: $$a + o = 12$$
If Sam has 7 apples, how many oranges does he have?