Nina's school is 3 miles north of her house and the library is 5 miles west. If Nina walks directly from her school to the library, what is the distance between the two places?