Sarah has a knitting goal to make a scarf that's 77 inches long. She has already knit 14 inches of it. Once she finishes her scarf, she realizes that she also wants to knit a matching hat. If the hat requires an additional 5 inches of yarn, how many inches of yarn will Sarah need in total for her scarf and hat?