Let X be mid point of P and Q, which would be also feet of perpendicular.
Let X divides A and B in λ:1,λ=−1
x=(λ+13λ+4,λ+15λ+7,λ+13λ+1)
Now PX⊥AB⇒PX⋅AB=0
(λ+13λ+4−1)⋅(4−3)+(λ+15λ+7−0)(7−5)
+(λ+13λ+1−3)⋅(1−3)=0
λ+12λ+3+λ+110λ+14+λ+14=0
⇒λ+112λ+21=0⇒λ=4−7
X=(35,37,317)
X is mid point of PQ
Q≡(2⋅35−1,2⋅37−0,2⋅317−3)≡(α,β,γ)
⇒α+β+γ=32(5+7+17)−4=358−4=346