annie bakes some cupcakes for her children. If she gives each child 8 cupcakes,she will have 2 cupcakes left.If she gives each child 9 cupcakes, she will need another 2 cupcakes. How many children does annie have?

8-2= 6
6 divide 2= 3
9-2= 8
8 x 3= 24

24 children.

To solve this problem, we can use a basic algebraic approach. Let's assume that Annie has "x" children.

According to the given information, if Annie gives each child 8 cupcakes, she will have 2 cupcakes left. This can be expressed as an equation: 8x + 2 = total number of cupcakes Annie baked.

Similarly, if Annie gives each child 9 cupcakes, she will be short by 2 cupcakes. This can be expressed as: 9x - 2 = total number of cupcakes Annie baked.

Now, we can solve these two equations to find the value of "x" which represents the number of children Annie has.

8x + 2 = 9x - 2

By rearranging the equation, we get:
8x - 9x = -2 - 2
-x = -4
x = 4

So, Annie has 4 children.