Tracy had 87 nickels. She used some of her nickels to buy a cookie. Tracy later found 19 nickels in her backpack. Now Tracy has 64 nickels. How many nickels did Tracy use to buy the cookie?