$\text{l}(1-\alpha_\text{Al}\Delta\text{T})=20(1-\alpha_0\Delta\theta)$
$\Rightarrow\text{l}(1-24\times10^{-6}\times40)$
$=20(1-9\times10^{-6}\times40)$
$\Rightarrow\text{l(1-0.00096)}=20(1-0.00036)$
$\Rightarrow\text{l}=\frac{20\times0.99964}{0.99904}=20.012\text{cm}$
Let initial breadth of aluminium = b$\text{b}(1-\alpha_\text{Al}\Delta\text{T})=30(1-\alpha_0\Delta\theta)$
$\Rightarrow\text{b}=\frac{30\times(1-9\times10^{-6}\times40)}{(1-24\times10^{-6}\times40)}$
$=\frac{30\times0.99964}{0.99964}=30.018\text{cm}$

Let the final length of the system at system of temp.