It depends on whether there was a 1099-S issued to you, and what amount was reported on the 1099-S.
If there was no 1099-S issued, simply enter half the sales proceeds and half of the cost basis in a single transaction.
If there was a 1099-S with half of the proceeds reported, simply enter half the sales proceeds and half of the cost basis in a single transaction.
However, if there is a 1099-S with the full sales proceeds reported in your name, you will need to have entries to reduce the net gain to the gain amount you actually received.