I JUST NEED THE EQUATION

Lisa won 51 pieces of gum playing hoops at her school's game night. Later, she gave three to each of her friends. she only has 9 remaining. How many friends does she have?

(this question killed me)