We know that the equation is y = 50x and that x is the hours, since we need to know how many miles Gary will travel in 8 hrs plug 8 in for x and solve.
y = 50*8
y = 400
In 8 hrs Gary will travel 400 mi
Hope this helped!
~Just a girl in love with Shawn Mendes