Answer:
P's income = $2,000 + $1,000 (tax exempt) = $3,000
The paying of the recourse liability will be considered a distribution to the partners, so the partners' basis will be affected.
Since both partners A and B each own 50%, then A should report $4,000 in gains from the distribution (payment of recourse liability - basis) plus $1,000 in ordinary income.
Since partnerships are pass through entities, they are not taxed directly, the partners are taxed.