The sentence: “The midwife took 40 roubles for two months' board and attendance, 25 went to get the baby into the foundlings' hospital, and 40 the midwife borrowed to buy a cow with”
What sense does the word “with”(the last word in the sentence) have?