Transversals and multicolored matchings