The atomic weights of two elements A and B are 40 and 80 respectively. If x g of A contains y atoms, how many atoms are present in 2x g of B?