The table shows the cost of a pizza based on the number of toppings. Write a function rule to find the cost for a pizza with x toppings

The table shows the cost of a pizza based on the number of toppings. Write a function rule to find the cost for a pizza with x toppings class=

Verified Answer :

10/x I think but I am not sure


Answer:

Let y represents the cost of a pizza.

here, x represents the number of topping.

Using slope-intercept form:

The equation of line is given by:

\(y = mx+b\)          .....[1]

where, m is the slope of the line and b is the y-intercept.

From the given table:

Consider coordinates in the form of (x, y)

i,e (1, 12) and (2, 14)

Calculate slope:

\(\text{Slope (m)} = \frac{y_2-y_1}{x_2-x_1}\)

Substitute the given points we have;

\(m = \frac{14-12}{2-1} = \frac{2}{1} = 2\)

Substitute this in [1] we have;

\(y =2x+b\)

Substitute any point from the given table to find b:

Substitute (4, 18) we get;

\(18 = 2(4) +b\)

18 = 8+b

Subtract 8 from both sides we have;

10 = b

or

b = 10

⇒\(y =2x+10\)

therefore,  function rule represents the  given data table is, \(y =2x+10\)