Since A, B and C are collinear, they lie on a straight line. From the information given,
AB + BC = AC
AB = x + 6
BC = 3x - 5
AC = 36 - x
Thus,
x + 6 + 3x - 5 = 36 - x
x + 3x + 6 - 5 = 36 - x
4x + 1 = 36 - x
4x + x = 36 - 1
5x = 35
x = 35/5
x = 7
Option D is correct