In the table below, x represents miles traveled and y represents the cost to travel by train.

Miles, x
Cost, y
2
8.50
5
15.25
8
22.00
12
31.00

Which linear equation represents the situation?

y = 2 x + 8.50
y = 2.25 x + 4.00
y = 6.50 x + 2.25
y = 12 x + 22.50