Maddie and Julia are hiking at their local state park. Both girls start their hikes at the main shelter but go on different trails. After three hours Maddie is 5 miles north and 3 miles east of the shelter. Julia is 7 miles east and 2 miles north of the shelter. How far apart are the two girls?