Help with Motion and distance word problems

I am trying to figure out how to solve a distance question. I have the formula and the answer I just don't understand how to get to the answer and where to plug in my numbers. Can someone help me with this.

Question:

Running at an average rate of 6 meters per second, a sprinter ran to the end of a track. The sprinter then jogged back to the starting point at an average rate of 2 meters per second. The total time for the sprint and jog was 2 minutes and 40 seconds. Find the length of the track.

I have been trying to use the distance=(rate)(time)

d=rt but I cannot get it to save my life.