The graph below shows the triangle ABC
We use points C(-2,6) and B(3,4) to find the slope of CB

Now, we find the perpendicular slope to CB.

The altitude has to pass through point A(1, -2). Let's use the point-slope formula to find the equation

Hence, the equation of the altitude is

This altitude is perpendicular to the side CB.