a)
Ta có:
\(AB+AD+BC+DC=24x\)
\(\Leftrightarrow\left(8x-4\right)+2\left(4x+1\right)+DC=24x\)
\(\Leftrightarrow DC=24x-\left(8x-4\right)-2\left(4x+1\right)\)
\(\Leftrightarrow DC=24x-8x+4-8x-2\)
\(\Leftrightarrow DC=\left(24x-8x-8x\right)+\left(4-2\right)\)
\(\Leftrightarrow DC=8x+2\)
b) Thay \(CD=18cm\) ta có:
\(8x+2=18\)
\(\Rightarrow8x=16\)
\(\Rightarrow x=2\)
Khi đó:
\(AB=8x-4=8.2-4=14\left(cm\right)\)
\(AD=4x+1=4.2+1=9\left(cm\right)\)