A small bakery serves two types of cakes: chocolate and vanilla. If the total number of cakes made in a day is represented by the equation:
$$x + y = 30$$
where $x$ is the number of chocolate cakes and $y$ is the number of vanilla cakes. If the bakery sells 10 chocolate cakes, how many vanilla cakes did they sell?