we know that
If two triangles are congruent, then its corresponding sides and its corresponding angles are congruent
In his problem
we have that
Both triangles have two congruent sides and the third side is a common side
therefore
Both triangles are congruent by SSS