a)
AB = √(8^2 + 6^2) =10
AC = 8
BC = 6
AS = √(8^2 + 6^2) =10
BS = √(6^2 + 6^2) =6·√2 = 8.485
CS = 6
b)
X = [12,10,-3] + r * ([10,8,-2] - [12,10,-3]) = [12,10,-3] + r * [-2, -2, 1]
[12,10,-3] + r * [-2, -2, 1] = [x, y, 0] --> x = 6 ∧ y = 4 ∧ r = 3 --> [6, 4, 0]
[12,10,-3] + r * [-2, -2, 1] = [x, 0, z] --> x = 2 ∧ z = 2 ∧ r = 5 --> [2, 0, 2]
d = √(4^2 + 4^2 + 2^2) = 6