Sorry, I cannot answer this question accurately without more information about the cost of a sub at Fred's Sub Shop. The slope-intercept equation represents a linear relationship between two variables (in this case, cost and quantity), and we would need at least two known data points for cost and quantity to determine the slope and y-intercept of the equation.