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=

Respuesta :

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:

[tex]y = mx+b[/tex]          .....[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:

[tex]\text{Slope (m)} = \frac{y_2-y_1}{x_2-x_1}[/tex]

Substitute the given points we have;

[tex]m = \frac{14-12}{2-1} = \frac{2}{1} = 2[/tex]

Substitute this in [1] we have;

[tex]y =2x+b[/tex]

Substitute any point from the given table to find b:

Substitute (4, 18) we get;

[tex]18 = 2(4) +b[/tex]

18 = 8+b

Subtract 8 from both sides we have;

10 = b

or

b = 10

⇒[tex]y =2x+10[/tex]

therefore,  function rule represents the  given data table is, [tex]y =2x+10[/tex]