This question was asked in Misc 3
Why we let x be the side of triangle 

Mayank Sharma's image