Optimal control of tumor size used to maximize survival time when cells are resistant to chemotherapy