In a small theater, the number of adult tickets sold can be represented by the equation:
$$x + y = 50$$
where $x$ is the number of adult tickets and $y$ is the number of child tickets sold. If the number of child tickets sold is represented by the equation:
$$y = 2x - 10$$
How many adult tickets were sold? Enter your answer in the box below.