We are given 9 tasks T1,T2,…,T9. The execution of each task requires one unit of time. We can execute one task at a time. Each task Ti has a profit Pi and a deadline di. Profit Pi is earned if the task is completed before the end of the dith unit of time.
TaskProfitDeadlineT1 15 7T2202T3305T4183T5184T6105T7232T8167T9253
What is the maximum profit earned?