The Jones family bought 4 sandwiches and 3 salads. They spent $24. Let x be the cost of a sandwich and y be the cost of a salad.