To solve this we would need to make two equations. One equation accounts for the number of hot dogs and sandwiches and the other is the total cost
X + Y = 985
2.95x + 9.95y = 7343.75
Solve for one variable and plug it into the other equation. And solve for the next variable.
X = hotdogs
Y = sandwiches.