By CPCTC [Congruent parts of congruent triangles are congruent], we have
(1)
(2)
Now in , we have
(From 1)
(From 2)
(Vertical angles)
Therefore by AAS theorem of congruence , we have
AAS theorem of congruence says that if two angles and a non-included side of a triangle are congruent to the corresponding parts of other triangle then the triangles are said to be congruent.