Answer
See below.
Work Step by Step
Let $v$ be the speed of the slower cyclist, then $v+5$ is the speed of the faster one, then our equation is: $(v(v+5))\cdot6=246\\(2v+5)6=246\\12v+30=246\\12v=216\\v=18$
So they are riding at the speed of $18$ and $23$ miles an hour.