Two radioactive elements Q and S have half-life periods of 10 hours and 20 hours…