Final answer:
To find out how many coins Shila had initially, two simultaneous equations were formed and solved: H + S = 182 and H - 30 = S + 30. By substitution and simplification, it was found that Shila had 61 coins at first.
Step-by-step explanation:
The question asks us to determine the number of coins Shila had at first, before Herry gave her 30 coins to equalize their amounts. Let's define the number of coins Shila had initially as S and the number Herry had as H. We know that H + S = 182. After Herry gives 30 coins to Shila, they both have the same number of coins. Thus, H - 30 = S + 30.
We can set up the following equations:
- H + S = 182
- H - 30 = S + 30
By solving these equations simultaneously, we'll find the initial amount of coins for both Herry and Shila. We can substitute H from the first equation into the second to get:
182 - S - 30 = S + 30
Now, we simplify and solve for S:
152 - S = S + 30
152 - 30 = S + S
122 = 2S
S = 61
Therefore, Shila had 61 coins at first.