PLS HELP!!!!

Some children were sharing oranges. If each child took 3 oranges, there would be 2 oranges left over. But if each child took 4 oranges, there would be 2 oranges short. How many oranges were there?

Here's how to do it with algebra.

Let x be the number of children and y be the number of oranges that they share. You know two things. They are
3x = y -2
4x = y +2
Subtract the first equation from the last.
x = 4

Now use the first equation to get y:
12 = y -2
y = 14.
There are 14 oranges for 4 children

You could also do it by guessing the number of kids, starting with 1, then 2 etc. until you get a number that works.

To solve this problem, we can use algebraic equations. Let's say we have "x" as the total number of oranges.

According to the problem, if each child took 3 oranges, there would be 2 left over. So, if there are "n" children, the equation would be:

3n + 2 = x

Similarly, if each child took 4 oranges, there would be 2 oranges short:

4n - 2 = x

To find the solution, we can set up a system of equations:

3n + 2 = 4n - 2

Simplifying this equation, we get:

4 = n

Now, we substitute the value of "n" back into either of the original equations to find the total number of oranges:

3(4) + 2 = x

12 + 2 = x

x = 14

Therefore, there were 14 oranges in total.