To determine the similarity of the triangles, we shall use the proportionality of the corresponding sides:
DH/DE=DG/DF
thus
30/24=40/32
5/4=5/4
since the triangle shares the same angle ∠D, then we can conclude that the triangles are similar by side angle side (SAS) postulate