how to work out an expression in terms of x for the sum of the angles of a triangle?
As a hint, the sum of angles in a triangle is 180 degrees.