You run and walk on a trail that is 10 miles long. You run 5 miles per hour and walk 2 miles per hour. Let y be the number of hours you walk and let x be the number of hours you run.

Write an equation that relates the number of hours you run and the number of hours you walk to the total length of the trail.