Members of a soccer club received $500 in donations but they wanted to raise more money by organizing a game. They charge an entrance fee of $12 a person. After the game, the team organizers find the total amount of money the club has (including the $500 donation money) is $816. Write an equation that relates the total amount raised, the money donated and the money from the entrance fees collected.