A youth soccer association raised ​$5145 in​ fund-raising projects. There were expenses of ​$777 that had to be paid​ first, with the balance of the money divided evenly among the 14 teams. How much did each team​ receive?