Dear student,
The increase in length will be same in both rods.
Increase in length depends on change in temperature, Initial length and material.
Now in above case all the 3 quantities are same for both the rods so increase in length is also same.
Regards