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

please help me

A = H - .2

A - 80 = .5(H + 80)

Substitute H-.2 for A in the second equation and solve for H. Put that value in the first equation to find A. Check by putting both values in the second equation.

butt ugly!!!!! fuguir it out!!!

Andy started with 320 marbels

To solve this problem, we can break it down into steps:

Step 1: Set up the equation to represent the given information.
Let's say the number of marbles Andy had in the beginning is A, and the number of marbles Henry had is H.

According to the first sentence, Andy had 20% fewer marbles than Henry, so we can represent Andy's marbles as 0.8H (0.8 is 100% - 20%).

Step 2: Apply the second condition given in the problem.
Andy gave 80 marbles to Henry, so after the transfer, Andy has (0.8H - 80) marbles.

According to the second condition, the number of marbles Andy had left is half of what Henry had. So we can set up the equation: (0.8H - 80) = 0.5H.

Step 3: Solve the equation to find the value of H.
Let's solve the equation:

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

Step 4: Calculate how many marbles Andy had in the beginning.
Now, we know that Henry had approximately 266.67 marbles. To find Andy's original number of marbles (A), we can substitute this value back into the first equation:
A = 0.8H
A = 0.8 * 266.67
A ≈ 213.34

Thus, Andy had approximately 213.34 marbles in the beginning.