A metal of volume 40 cm3 is heated from 30 °c to 90 °c, the…