Two-Sided Investment and Matching with Multidimensional Cost Types and Attributes