The equation for the maximum production line comes from the so called intercept form of a line:
- $\frac x{x_0} + \frac y{y_0} = 1$
Surely you know that a line is determined by two points. In your case we have
$x_0 = 15$ and $y_0 = 12$. If you plug in the coordinates of the points $(15,0)$ and $(0,12)$ into the corresponding equation $\frac x{15} + \frac y{12} = 1$, you will see that these points satisfy the equation.
Edit after comment:
The convex set of feasible points is the intersection of the half planes $x\geq 0, y \geq 0$ and the proper halfplane created by the line $\frac x{15} + \frac y{12} = 1$. Note, that all halfplanes are convex and the intersection of convex sets is convex.
To choose the proper side of the halfplane - which means choosing the proper relation sign - can be quickly done by using a test point which belongs to the feasible points and does not lie on the line in question.
Choosing $(0,0)$ gives $\frac 0{15} + \frac 0{12} = 0 \color{blue}{<}1$. Hence, the relation sign for the production restriction is $\frac x{15} + \frac y{12} \color{blue}{\leq} 1 $.
This method works because halfplanes are connected sets and, hence, a relation sign belongs to exactly one of the halfplanes. In other words, a restricion changes only the relation sign when crossing the line bordering the half planes.