A precinct reported that 313 people had voted in an election. The number of Republican voters was 8 more than two-thirds the number of Democrats. How many Republicans and how many Democrats voted in that precinct?