The 3 inside angles of a triangle need to equal 180 degrees.
You are given 28 for one.
The second on is adding 58 + 77 = 135 degrees.
X = 180 - 28 - 135 = 17 degrees