From the given condition, it must be seen to it that the width must also be the lowest whole-number possible. Thus, the width should be equal to 1 yard. The given 36 is the perimeter of the run.
P = 2L + 2W
36 = 2L + 2(1)
L = 17
Thus, the longest whole-number length is equal to 17 yards.