amy a one third partner retires from the ajs partnersh

a. What are the amount and character of Amy recognized gain or loss?
b. How would your answers to Part a change if Joan and Stephanie each purchased one-half of Amy  partnership interest for $80,000 cash instead of having the partnership distribute the $160,000 in cash to Amy?