There are 6 different coins in a fairy land Biland. A, B, C, D, E, F-coins. Written as Ag, Bg, Cg, Dg, Eg, Fg. The smallest is Ag and the biggest is Fg.
- 1 Fg = 2 Eg = 4 Dg = 8 Cg = 16 Bg = 32 Ag
- 1 Eg = 2 Dg = 4 Cg = 8 Bg = 16 Ag
- 1 Dg = 2 Cg = 4 Bg = 8 Ag
- 1 Cg = 2 Bg = 4 Ag
- 1 Bg = 2 Ag
Instructions:
Count amount of A-coins.
Example
8
Bg
Bg
+
4
Cg
Cg
=
Ag
Solution
8
Bg
Bg
+
4
Cg
Cg
=
32
Ag
Ag