Mia 77 pieces of gum playing hoops at her school's game night. later she gave three to each of her friends. she only has five remaining. how many friends does she have?