A Linear Programming Approach to Max-sum Problem