Two friends leave school at the same time, sarah is heading due north and beth is heading due east. One hour later they are 10 miles apart. If sarah traveled 8 miles from the school, how many miles had beth traveled?