A subset-sum type formulation of a two-agent single-machine scheduling problem