The question is:
Nadir Airways offers three types of tickets on their Boston-New York flights. First-class tickets are \$140, second-class tickets are \$110, and stand-by tickets are \$78. If 69 passengers pay a total of $6548 for their tickets on a particular flight, how many of each type of ticket were sold?
Now I set up my equation as
$140x+110y+78z=6548$
But I'm confused how to go from here. I know I need to find the GCD in order to evaluate that the equation has a solution and then set up my formulas for $x=x_{0}+\frac{b}{d}(n)$ and $y=y_{0}-\frac{a}{d}(n)$
Ive solved Diophantine equations before but only in the form $ax+by=c$. How do I continue from here? I'm not interested in the solution, I can do that by myself, but I would like to know the process from solving these types of Diophantine equations.
Combining the comments:
$140x+110y+78z=6548$
and
$x + y + z = 69$
$\implies 78x + 78y + 78z = 69*78 = 5382$
$\implies 62x + 32y = 1166 \implies 31x + 16y = 69*78 = 583$
And we can quickly deduce that $x = 9, y = 19, z = 41$ (by simple inspection in my case - using that we only have integer values for $x,y,z$.