Deductions & credits

Real estate attorney said if I paid it is a sale , if They give to me it is a gift . So let say they sold it to me so how capital gain in this case , time of transaction property was appraised 382k by County appraisal districts