You go to a school dance. There is an entrance fee, and there are slices of pizza for sale. After having 1 slice of pizza, you h
ave spent a total of $6. After having 2 more slices of pizza, you have spent a total of $10. Write an equation that represents the total cost y after buying x slices of pizza at the dance.