Divide 400g in the ratio 5:3.
5+3=8 part
But, as for 1 part?
400/8 = 50 for 1 part
ratio 5= 50*5=250 g
ratio 3= 50*3=150 g
confirm the answer
250g+150g=400g
5/(5+3) * 400 = 250 g
3/(5+3) * 400 = 150 g