Two groups of hikers began walking from the same place, traveling in different directions. In one day, the first group traveled 16 miles north. On the same day, the second group traveled 12 miles east. How far apart are the groups at the end of one day of walking?