Cancer occurs when genetic mutations in abnormal cells cause them to divide rapidly. You can inherit mutations or develop them…