Answer:
First Barn contained = 90 tons
Second barn contained = 30 tons
Step-by-step explanation:
Let us suppose that second barn contains x tons of Hay
Now according to given condition
First Barn Contain = 3 *x = 3x
According to other condition
20 tons removed from first barn i.e. 3x - 20 and 20 tons were added to second barn i.e. x + 20
the amount of hay in second barn which is x + 20 is equal to 5 / 7 of the hay remaining in first barn which is 3x-20
So in mathematical form it could be written as
x + 20 = [tex]\frac{5}{7}*(3x-20)[/tex]
To find hay in each barn
We have the equation
x + 20 = [tex]\frac{5}{7}*(3x-20)[/tex]
Multiplying both sides of equation by 7
7(x+20)=[tex]\frac{5*7}{7}*(3x-20)[/tex]
7(x+20)=5(3x-20)
7x + 140 = 15 x - 100
adding 100 on both sides gives
7x + 140 + 100 = 15x - 100 + 100
7x + 240 = 15 x
Subtracting 7x from both sides
7x + 240 - 7x = 15 x - 7x
240 = 8x
or
8x = 240
Dividing both sides by 8
8x / 8 = 240 / 8
x = 30 tons
so second barn contained = 30 tons of hay
now
First barn contained = 3 * x
as x = 30
so putting the value
First barn contained = 3 * 30
First Barn contained = 90 tons