Triangles ADC and BCD are both right angled triangles. The angles D and C are both 90 degrees (right angles), and line DC is common to both triangles.
Since line DC is common to bot triangles, then the following ratio applies;

The ratio for the hypotenuse divided by the base is equal for both triangles, hence they both are congruent.