To determine the length of the rectangular dog run, we can use the formula for the perimeter of a rectangle, which is given by:
\[ P = 2 \times (\text{length} + \text{width}) \]
Sari has 40 feet of fencing, so we set the perimeter \(P\) to 40 feet:
\[ 40 = 2 \times (\text{length} + 8) \]
Now, we can divide both sides of the equation by 2:
\[ 20 = \text{length} + 8 \]
Next, we subtract 8 from both sides to solve for the length:
\[ \text{length} = 20 - 8 = 12 \]
Therefore, the length of the dog run will be 12 feet.