The coordinates of A and B are (3k, 8) and (k, -3) respectively. Given that the gradient of the line segment AB is 3, find the value of k.​