AbstractGiven is a set of items and a set of devices, each possessing two limited resources. Each item requires some amounts of these resources. Further, each item is associated with a profit and a color, and items of the same color can share the use of one resource. The goal is to allocate the resources to the most profitable (feasible) subset of items. In alternative formulation, the goal is to pack the most profitable subset of items in a set of two-dimensional bins (knapsacks), in which the capacity in one dimension is sharable. Indeed, the special case where there is a single item in each color is the well-known two-dimensional vector packing (2DVP) problem. Thus, unless P = NP, the problem that we study does not admit a fully polynomi...