What is the measure of the third angle in the given figure?

The figure shows a triangle. The angles in the triangle are labeled as 140 degree, 23 degree and x.


can someone also explain how they got the answer