Hello! Please assist me with this problem on how to allocate

Hello! Please assist me with this problem on how to allocate services to a department. I would like a detail answer so I can understand the calculations an problem.,Thank you in advanced for your help!