Find the range of the function for the given domain.

f(x)=2x-8;[-2,-1,0,1,2]
What is the range? Choose the correct answer below.
A. [-12,-9,-9,-5,-4]
B. [-12,-10,-8,-6,-4]
C. [-12,-9,-8,-5,-4]
D. [-13,-10,-8,-6,-3]

To find the range of the function, we need to substitute the values from the given domain into the function.

When we substitute -2 into the function:
f(-2) = 2(-2) - 8 = -4 - 8 = -12

When we substitute -1 into the function:
f(-1) = 2(-1) - 8 = -2 - 8 = -10

When we substitute 0 into the function:
f(0) = 2(0) - 8 = -8

When we substitute 1 into the function:
f(1) = 2(1) - 8 = 2 - 8 = -6

When we substitute 2 into the function:
f(2) = 2(2) - 8 = 4 - 8 = -4

Therefore, the range of the function for the given domain is: [-12, -10, -8, -6, -4].
The correct answer is B. [-12, -10, -8, -6, -4].