The solution would be like this for this specific problem:
Cosθ = adjacent side/hypotenuse
c^2 = a^2 + b^2 c^2 = 3^2 + 7^2 c = sqrt(3^2 + 7^2) = ?
c^2 = a^2 + b^2 c^2 = 3^2 + 7^2 c = sqrt(3^2 + 7^2) = ?
cosθ = adjacent side/hypotenuse = − 7/√58 = −7√58/58