We prove a common generalization of two results, one on rainbow fractional matchings [3] and one on rainbow sets in the intersection of two matroids [9]: Given d = r⌈k⌉−r +1 functions of size (=sum of values) k that are all independent in each of r given matroids, there exists a rainbow set of supp(f i ), i ≤ d, supporting a function with the same properties.