Xanax is a brand name for the medication alprazolam, it belongs to a class of drugs called benzodiazepines. It is…