If the line ax + 2y-1 = 0 is parallel to the line X-Y + 2 = 0, then the real number a =

If the line ax + 2y-1 = 0 is parallel to the line X-Y + 2 = 0, then the real number a =

X-Y + 2 = 0, y = x + 2, slope 1
Ax + 2y-1 = 0, y = - ax / 2 + 1 / s, slope: - A / 2 = 1, a = - 2