Yes, it is possible below :
For difference of length to remains constant, the change in length of each rod must be equal at all temperatures. Let Lb and Ls be the length of the brass and the steel rod and
\(\alpha_{b}L_{b}ΔT=\alpha_{s}L_{s}ΔT\)
\(\alpha_{b}L_{b}=\alpha_{s}L_{s}\)
or Lb/Ls =\(\alpha_{s}/\alpha_{b}\).
Hence, the lengths of the rods must be in the inverse ratio of the coefficient of linear expansion of their materials.