We sketch two triangles, DFE and DGH, as shown below
Side DF correspond to side DG, the scale factor is 40÷32=1.25
Side DE correspond to side DH, the scale factor is 30÷24=1.25
That leaves us with the last corresponding sides, EF and HG which would also have a scale factor 1.25
Both triangles share the same angle D
We can conclude triangle DFE and triangle DGH are similar for property SSS and SAS