Write a formula for the given measure. Let  PP represent the perimeter in inches, and ww represent the width in inches. Identify which variable depends…