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