Well there can be two different solutions for this but i will choose the easier one. Obviously one requires a system of equations which obviously will involve a lot of thinking and some good algebra solving in order for them to solve.
As for hit and trial it is very easy, we can just keep adding the distance as we know they are in different directions. 9 + 6 = 15. So 15 x 2 = 30 miles. So after around 2 hours they will be 30 miles apart if they continue at the same pace.