You have to divide 28 cans of soda into two groups so the ratio is 3 to 4.
In order to find the number of cans of each group, you can state the situation in an algebraic equation.
Say x is the number of cans in one group and y is the number of cans in the other group.
The sum of the cans must be 28, that is:
x + y = 28 (1)
The ratio between the groups mustbe 3/4
x/y = 3/4 (2)
You solve the last equation for x:
x = 3/4 y
Next, you replace the previous expression into the equation (1) and solve for y:
x + y = 28
3/4 y + y = 28 simplify like terms
7/4 y = 28 divide by 7 and multiply by 4 both sides
y = 28(4/7)
y = 16
Next, replace the previous value of y into the equation (2):
x = 3/4 y
x = 3/4 (16)
x = 12
Hence, one group has 12 cans and the other one has 16 cans.