Tom and Jerry are selling different types of snacks at a sports event. Tom sells bags of chips for $1.50 each, while Jerry sells pretzels for $2.00 each. Together, they sell 40 bags of snacks, earning a total of $70.
Let $x$ represent the number of bags of chips sold, and $y$ represent the number of pretzels sold. The system of equations representing their sales is:
$$x + y = 40$$
$$1.5x + 2y = 70$$
What is the number of bags of chips Tom sold?