Half-lives of two radioactive substances A and B are respectively 20 minutes and 40 minutes. Initially the samples of A and B have equal number of nuclei. Find the ration of remaining number of A and B nuclei after 80 minutes.