You have to find first the value of x, which means that you have to add all the interior angles and have the equation equal to 180 like this:
3x+5x-6+90= 180 (remember that the form of the triangle is a right triangle, which means you have a 90 degree angle.)
The value of x is going to be equal to 12. (x=12)
Now, substitute in the given angles 3(12)= 36 5(12)-6= 54
You have to remember that exterior angles also sum up to 180 degrees, and since we already have the value of the exterior angle, 3x, now we are able to know the value of what they are asking you for, which is a simple subtraction 180-36= 144.