Let x be the speed for the first two miles and x+.5 be the speed for the last 8 miles. Since D=rt, \(2\over x \)+\(8\over x+.5\)is the time it took Janet to do the 10 mile race. If she took her bike the whole way, her time would be \(10\over x+.5\). Since that was two minutes faster than her real time, \(2\over x \)+\(8\over x+.5\)-\(10\over x+.5\)=2. Solving for s you get s=.5. The question asks for the average speed for the whole race so, \(2\over .5\)+\(8\over .5+.5\)=\(10\over a\) where a is the average speed. A= \(5\over 6\) miles per minute.
Hope it helps!