Janice is building a fence around a portion of her rectangular yard. The length of yard she will enclose is x and the width is 2x2 − 96x + 8 where the measurements are in feet.

If the length of the enclosed yard is 50 feet and the cost of fencing is $14 per foot, how much will Janice need to spend on fencing?