In the table below, x represents the 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

What is the slope of this function?