Sarah and John are participating in a charity race. Sarah runs at a speed of 6 miles per hour, while John runs at a speed of 8 miles per hour. They start running from the same point but in opposite directions. After running for a certain amount of time, they are 28 miles apart. How long did each run? Let's think step by step and output the final answer within \boxed{}.
user