Andy had 20% fewer marbles than Henry. When Andy gave 80 marbles to Henry, the numbers of marbles he had left was half of what Henry had. How many marbles did Andy have in the begining?

Please help me

To find out how many marbles Andy had in the beginning, let's break down the information given.

Let's assume that Henry had x number of marbles.

According to the first statement, Andy had 20% fewer marbles than Henry. So Andy would have (100% - 20%) = 80% of what Henry had, or 0.8 * x marbles.

According to the second statement, Andy gave 80 marbles to Henry. So now Andy would have (0.8 * x) - 80 marbles left.

According to the last statement, the number of marbles Andy had left was half of what Henry had. So we can set up the equation: (0.8 * x) - 80 = (1/2) * x.

Now, let's solve the equation to find the value of x (Henry's number of marbles).

0.8x - 80 = 0.5x
0.8x - 0.5x = 80
0.3x = 80
x = 80 / 0.3
x ≈ 266.67

Therefore, Henry had approximately 266.67 marbles.

To find out how many marbles Andy had in the beginning, we can substitute the value of x into the equation:

Andy's number of marbles = 0.8 * x
Andy's number of marbles = 0.8 * 266.67
Andy's number of marbles ≈ 213.33

Therefore, Andy had approximately 213.33 marbles in the beginning.