Jimmy pays $2.93 for each gallon of gas. Which table best represents the relationship between g, the number of gallons purchased, and m, the amount he pays for gas?

A.g m
2 $5.86
5 $14.65
8 $23.44


B.g m
$2.93 1
$5.86 2
$8.86 3


C.g m
$5.86 2
$14.65 5
$23.44 8


D.g m
1 $2.93
2 $5.86
3 $8.86