Deductions & credits

I interpreted it as the Basis is $47,066 ($45,000 plus purchase costs) and the 'net' proceeds from the sale was $45,500 ($51,000 sales price minus $5500 in sales expenses).