If two angles of one triangle are congruent to two angles of another triangle, then the two triangles are similar.
Let there be two triangles, $\triangle ABC$ and $\triangle DEF$.
Assume $\triangle ABC$ is larger than $\triangle DEF$ without loss of generality.
We will "superimpose" the smaller triangle $\triangle DEF$ onto the larger triangle $\triangle ABC$.
Check for Congruence: Consider $\triangle APQ$ and $\triangle DEF$.
1. $AP = DE$ (by construction).
2. $\angle A \cong \angle D$ (Given).
3. $AQ = DF$ (by construction).
By the SAS (Side-Angle-Side) Postulate, we have: $$ \triangle APQ \cong \triangle DEF $$
Since $\triangle APQ \cong \triangle DEF$, corresponding parts of congruent triangles are congruent (CPCTC). Therefore: $$ \angle APQ \cong \angle E $$
However, we were given that $\angle B \cong \angle E$. By the Transitive Property: $$ \angle APQ \cong \angle B $$
Notice that $\angle APQ$ and $\angle B$ are corresponding angles relative to the transversal line $AB$ crossing lines $PQ$ and $BC$. Since corresponding angles are equal, the lines must be parallel: $$ PQ \parallel BC $$
Because $PQ \parallel BC$ inside $\triangle ABC$, we apply the Basic Proportionality Theorem (Thales's Theorem), which states that a line parallel to one side of a triangle divides the other two sides proportionally.
Thus: $$ \frac{AB}{AP} = \frac{AC}{AQ} = \frac{BC}{PQ} $$
Recall from our construction that $AP = DE$, $AQ = DF$, and since $\triangle APQ \cong \triangle DEF$, $PQ = EF$. Substituting these values into the equation:
We have shown that the corresponding angles are congruent (Given) and the corresponding sides are in proportion (Proven).
$\therefore \triangle ABC \sim \triangle DEF$
Q.E.D.