The joke is that the phrase 'what would you take for this' can sound like the person is asking for a price.  The person is asking the doctor about a cold and likely actually means 'what medicine would you prescribe for this cold?' The doctor just responds asking for an offer as if it was a trade being negotiated.
Doctor , Doctor , what would you take for this cold ? - Make me an offer . Next .