Optimizing Shared Costs with Effective Allocation Strategies: Maximizing Efficiency and Collaboration