You can
put this solution on YOUR website!You started out ok by finding the distance of the two riders from the starting point after two hours of travel. But, since these two are not traveling in a straight line, you cannot simply subtract their distances.
What you need to do is to draw a diagram showing one rider going north for 24 miles and the second rider going west for 10 miles. This forms the two legs of a right triangle. Their distance apart at this time is represented by the length of the hypotenuse of this right triangle, so you can use the Pythagorean theorem to calculate this length because you already know the lengths of the two legs.

c is the length of the hypotenuse or their distance apart after two hours of riding.

Take the square root of both sides.
They are 26 miles apart after two hours of riding.