invalid sale

Selling sweets for a madrasah

Q: I am standing at a stall in a madrasah and selling things for the madrasah such as sweets, etc. The items do not belong to me but to the madrasah. Can I purchase items for myself from the stalls, or would this be impermissible since I would, in essence, be the buyer and the seller at the same time?