I suggest you do one of two things, or both:1. Secure a calculator, a ruler and a protracter, draw a few scalene triangles, and see if you formula holds even approximately.
2. Look up the Law of Cosines, or the Cosine Law and think whether you can bridge between it and your formula.