In this transaction, you are the end buyer for the deal, and are having the seller carry back your down-payment in 2nd position.
In this transaction, there are 2 separate contracts: A-B and B-C. You are the B party and are simultaneously buying the property and selling it to an end buyer.