I would rather work with x and y, so let's make x1 = x and x2 = y
x - 6y = -27
6x + cy = -157
no solutions means the lines are parallel. Rearrange:
6y = x -27 => y = x/6 - 27/6
cy = -6x -157 => y = -6x/c -157/c
equating the gradients (slopes) 1/6 = -6/c => c = -36
This solution ignores the hint. I believe this is easier.