Methadone is a synthetic opioid agonist used to relieve severe pain in people who are expected to need pain medication…