Memory is not merely a mechanism for storing information; it aids in retaining information that may be useful for reducing…