Distributions in a Partnership

This may be a dumb/easy question, but I'm getting confused about the distributions in a partnership (liquidating and non). My understanding is that gain is recognized to the extent that cash received by a partner in excess of their interest in a partnership and that the basis of property distributed is usually the same basis as the partnership interest. But what would the basis of distributed property be if a partner had $100,000 interest in a partnership, and the partnership distributed $120,000 in cash and property of $50,000 to that one partner? Would it be zero? And the gain would only be $20,000?