For both the triangles angle C and angle Z is the same because they are the same angle And angle Y and angle B is the same because they are both right angles. Since both those pairs of angles are the same the last pair has to be equal too which means the triangles are similar.