first the equation is written as such because she pays $10 no matter how many hours she rides. She also pays 2.50 for each hour so use h as the variable to define number of hours she rides the bike.
since equation is y = 10 +2.50h
and h = 6 hours, substitute and find the total cost