Match the following with their values if,
△DGH and △DEF are as shown below.
In ΔDGH and ΔDEF,
∠DHG=∠DFE=90∘ (Given)
∠HDG=∠FDE (Common angle)
∴ΔDGH∼ΔDEF (By AA similarity criterion)
⇒DGDE=DHDF
⇒3x−14x+2=812
⇒12(3x−1)=8(4x+2)
⇒36x−12=32x+16
⇒36x−32x=16+12
⇒4x=28
⇒x=284=7
∴DG=3x−1=3×7−1=21−1=20 cm
and DE=4x+2=4×7+2=28+2=30 cm