The equation of the function is: B = -5x + 30
X-intercept is 6, which means after 6 hours, the battery is totally drained.
What is the X-intercept of a Function?
The x-intercept of a function is the point on the x-axis that the line intercepts, which is the value of x when y = 0.
Find the slope of the function (m):
Slope (m) = change in B / change in t = (20 - 10) / (2 - 4)
Slope (m) = 10/-2
Slope (m) = -5
The y-intercept (b) = 30.
Write the equation of the function by substituting m = -5 and b = 30 into B = mt + b:
B = -5x + 30
The x-intercept of the function is 6, which represents the hours it took for the whole battery to drain.
Learn more about the x-intercept of a function on:
https://brainly.com/question/3951754
#SPJ1