The linear expansivity of a metal P is twice that of another metal Q. When…