No, it depends whether or not the two integers are positive or negative.
5 is b because 3/6 is equivalent to 1/2
6 is a because 1/6 is less than half
Choose two points on the hexagon that form a line. Plug the numbers into the distance formula and work it out. Because all the sides are equal, you only need to do this once. Hope this helped!
The gradient of this line is 9 so the gradient of the perpendicular line is -1/9 (the two perpendicular gradients must multiply to get -1).
The equation of a line is y=mx+c
where m is the gradient and c is the y intercept
We can then just substitute values in:
y = -1/9(x) -2