Let x represent the number of tacos that Sam ordered and ate.
Let y represent the number of burritos that Sam ordered and ate.
From the information given, If he ordered 4 items, it means that
x + y = 4
If tacos are 250 calories, it means that the number of calories in x tacos is 250 * x = 250x
If burritos are 330 calories, it means that the number of calories in y burritos is 330 * y = 330y
If he consumed a total of 1080 calories, it means that
250x + 330y = 1080
From the first equation, x = 4 - y
By substituting x = 4 - y into the second equation, we have
250(4 - y) + 330y = 1080
1000 - 250y + 330y = 1080
- 250y + 330y = 1080 - 1000
80y = 80
y = 80/80
y = 1
x = 4 - y = 4 - 1
x = 3
Thus, Sam ordered and ate 3 tacos and 1 burritos