Alice is organizing a fundraiser and selling two types of snacks. One type, cookies, costs $3 each, and the other type, brownies, costs $5 each. If Alice sells a total of 60 snacks (cookies and brownies combined) and earns $240 from the sales, how many cookies did she sell?
Let x represent the number of cookies sold and y represent the number of brownies sold. We can express the relationships with the following equations: