Peter earns $1.50 for every cup of lemonade he sells. Write an equation that shows the relationship between the number of cups sold x and the earnings y.