If the line passes through the points (-2, 6) and (4, 8) is perpendicular to the line through the points (8, 12) and (x, 24), find the value of x.