Get the slope/tangent vectors for each line:
dP/dt = ⟨-2, -4, 5⟩
dQ/dt = ⟨3, 5, 4⟩
Take their cross product - I'll call it v :
v = ⟨-2, -4, 5⟩×⟨3, 5, 4⟩ = ⟨-41, 23, 2⟩
Normalize this vector by multiplying it by 1/||v|| :
n = v/||v|| = ⟨-41, 23, 2⟩/(3√246)
Then the distance d between P and Q is
d = |n • (⟨-2, -4, 5⟩ - ⟨4, 5, -4⟩)|
d = 1/(3√246) |⟨-41, 23, 2⟩ • ⟨-6, -9, 9⟩|
d = 1/(3√246) |246 - 207 + 18|
d = 57/(3√246)
d = 19/√246