The smith family bought 6 sandwiches and 2 salads. They spent 72$. Let X be the cost of a sandwich and Y be the the cost of the salad.

Write a equation to model the situation.