If x \geq 0 and y \geq 0, how many lattice points does the line y = -2x + 18 - x + 30 pass through? (A lattice point is a point with integer coordinates.)
The equation simplifies to y=−3x+48
The first and last points in the first quadrant are (0,48), and (16,0).
Note that there will be a lattice point for every coordinate with 0≤x≤16.
Can you take it from here?