I think you have doubts from that perimeter part onwards.
Here 2s is the perimeter of triangle.
No other thing about perimeter is to ne known to solve this.
Just 2s= a+b+c is enough.
The remaining part has added nothing new, just the simple trigonometry.
Hope you get it.
Simple explanation.just read again.