Find number of positive integer solutions $(x,y,z)$ for the following equation:
$19x + 11y + 8z = 240$
I divided the equation by $8$ and then tried to equate remainders. It yields that $3(x + y) = 8k$ for some constant $k$ or $x + y$ is a multiple of 8. Can't choose which combinations of $x,y$ will do the work.
For $ x + y = 8 $ All ordered pairs are allowed. Corresponding values of $z$ are within domain of positive integers. This gives 7 solutions.
For $ x + y = 16 $ Only 7 pairs of $ x,y $ allowed. They are $ (1,15), (2,14), (3,13), (4,12), (5,11), (6,10), (7,9) $ Pairs $(8,8)$ and beyond yield negative values for $z$. Therefore total of 14 solutions.