Explanation:
AAS means angle angle side. so, we need 2 angles and 1 side.
the diagram shows us 1 angle in each triangle to be equal or congruent (C and G).
it also shows us implicitly, that the side AB is shared and is therefore truly the same for each triangle.
that means we need one more angle. either the one at A or the one at B. you pick.