There are four persons A, B, C, D; and A has some coins. A gave half of the coins to B and 4 more besides. B gave half of the coins to C and 4 more besides. C gave half of the coins to D and 4 more besides. Both B and D end up with same number of coins.