"you can use the cosine law."you can use the cosine law.
r^2=a^2+b^2+2ab*cos thetar2=a2+b2+2ab⋅cosθ
15^2=9^2+12^2+2*15*9*cos theta152=92+122+2⋅15⋅9⋅cosθ
225=81+144+270*cos theta225=81+144+270⋅cosθ
225=225+270*cos theta225=225+270⋅cosθ
225-225=270*cos theta225−225=270⋅cosθ
0=270*cos theta0=270⋅cosθ
cos theta =0cosθ=0
arc cos( 0)=pi/2arccos(0)=π2
theta=pi/2θ=π2