The angle between vecA→A and vecB→B is given by the dot product definition.
vecA.vecB=∥vecA∥*∥vecB∥costheta→A.→B=∥→A∥⋅∥→B∥cosθ
Where thetaθ is the angle between vecA→A and vecB→B
The dot product is
vecA.vecB=〈8,7,6〉.〈-1,6,1〉=-8+42+6=40→A.→B=⟨8,7,6⟩.⟨−1,6,1⟩=−8+42+6=40
The modulus of vecA→A= ∥〈8,7,6〉∥=sqrt(64+49+36)=sqrt149∥∥⟨8,7,6⟩∥=√64+49+36=√149
The modulus of vecB→B= ∥〈-1,6,1〉∥=sqrt(1+36+1)=sqrt38∥∥⟨−1,6,1⟩∥=√1+36+1=√38
So,
costheta=(vecA.vecB)/(∥vecA∥*∥vecB∥)=40/(sqrt38*sqrt149)=0.53cosθ=→A.→B∥∥∥→A∥⋅∥→B∥∥∥=40√38⋅√149=0.53
theta=57.9θ=57.9º