Looking for the right solutions, you must determine which goals you strive to accomplish first. It can be the optimization…