Half-lives of two radioactive substances A and B are respectively 20 minutes and 40 minutes. Initially