The atomic weights of two elements A and B are 40 and 80 respectively. If x g of A contains y atoms