Half-lives of two radioactive elements A and B are 20 minutes and 40 minutes