By theorem we have that if two sides of a triangle are equal, then the angles opposite to those sides are equal, with this or with knowing that the angle between the known sides are equal we conclude that both triangles are equal [the latter solution is using congruency SAS for the triangles, where S is side and A angle.]