$30,000 if I remember my partership class correctly.
The $30,000 is taxable whether you received a distribution or not. The $25k is just a partial payment of this income.
The net effect of these transactions increases your basis in the partnership by $5,000. ($30k – $25k)