Answer:
x+y = 87
1.5x+0.5y = 78.5
Explanation:
Let x = number of nachos sold and y = number of sodas sold
x+y = 87 because that's the total number of nachos and sodas he sold
1.5x+0.5y = 78.5 because nachos cost $1.50 and sodas cost $0.50 and David made a total of $78.50