If all the angle formed by line segments QA and AB has the same degree as the angle formed by line segments AB and BP, and line the following sets of line segments have the same length, then they are congruent triangles.
AP and QB
AQ and BP
Hope this helped.