The perimeter of a rectangle is given by the formula

where
L is the length
W is the width
In this problem
we have that
P=374 yd
L=3W-5
substitute the given values in the formula

Solve for W

Find out the value of L

therefore
The length is 139 yards
The width is 48 yards