Andy, Ben and Charlie share £100 in the ratio 8 : 7 : 5. How much each of them gets?

(I know the answer, please help me understand how I work it out?)