In the school election, votes were cast for sam, mary, and bill in the ratio of 4:3:2. if a total of 2178 votes were cast, how many votes did mary receive?