Sam and Andre shared a number of pennies in the ratio 8:3. They received a total of 671 pennies. How many more pennies did Sam receive than Andre?