Two radioactive elements A and B have half-lives of 100 and 50 years respectively. Samples…