Triangle AABC and ADEF can be congruent by the ASA and SAS criteria depending on the congruence of their angles and sides.
In order for triangles AABC and ADEF to be congruent:
If the angles A of AABC and ADEF are congruent, the sides AB and AD are congruent, and the sides AC and AE are congruent, then we can conclude that the triangles are congruent by the ASA (Angle-Side-Angle) criterion.
If the side AB of AABC is congruent to the side AD of ADEF, the side AC of AABC is congruent to the side AE of ADEF, and the included angle A in both triangles is congruent, then we can conclude that the triangles are congruent by the SAS (Side-Angle-Side) criterion.
If all the corresponding sides and angles of AABC and ADEF are congruent, then we can conclude that the triangles are congruent.