Triangles QRS and TRS share the same side which is congruent by the reflexive property and perpendicular angles. They also have another congruent leg as marked on the diagram. These forms side-angle-side or SAS.
This is because there is a negative and a positive number so you subtract and you get a positive number because In the equation the positive number is larger.