Here are a few reasons:
The triangles have the same three sides
The triangles have the same three angles
The triangles could perfect overlap one another
They have corresponding angles.
Not sure if this helped but I hope so!
Different points are used to identify the line, this can mean that both points lie on the same line.
Therefore the slope is the same because the line passes through both those points.