Independently derived solution.
In Box A, 1/4 of the coins are 10-cent coins and 3/4 are 50-cent coins. Group them as 1 ten-cent coin and 3 fifty-cent coins. Each group contains 4 coins and has value 10 + 3 × 50 = 160 cents = $1.60.
Number of groups = 86.40 ÷ 1.60 = 54. Number of coins in Box A = 54 × 4 = 216. Box B has the same number of coins, so it also contains 216 coins.
Check: 54 ten-cent coins and 162 fifty-cent coins have total value $5.40 + $81 = $86.40. Coin counts and coin values must not be equated.