Solved right triangle and intersection!