The extension of a stretched string is directly proportional to its tension. If the extension…