a fruit basket contains peachesv graprefruit, and pears in the ratio of 3:1:4 the basket has 12 pears.how many peaches and many grapefruits are in the basket?

3:1:4 = 9:3:12