The ordered pairs shown in the table are generated by the function g(x).

x g(x)
1 -5
3 -15
5 -21
The function g(x) can be represented by the equation . Enter the value for a and the value for b in the equation .

g(x) = ax + b

Using the given ordered pairs:
1. 1 = a + b (-5 = 1a + b)
2. 3 = 3a + b (-15 = 3a + b)
3. 5 = 5a + b (-21 = 5a + b)

Solving this system of equations:
1. a = -6
2. b = 1

Therefore, the function g(x) can be represented by the equation g(x) = -6x + 1.