In a small town, the total number of people is represented by two equations based on the number of children $$x$$ and adults $$y$$:
Equation 1: $$x + y = 50$$
Equation 2: $$3x + 2y = 140$$
What is the value of $$x$$, the number of children?