A store had a sale on baseball cards, so Percy bought several baseball cards to give as gifts. He gave a total of x cards away to 5 friends. Each friend got 4 baseball cards. Write and solve an equation to figure out how many baseball cards Percy gave away.