This is a rhetorical question. You can translate it as a strong statement. Alternate translation: "This perfume could have been sold for three hundred denarii and the money could have been given to the poor!" (See: [[rc://en/ta/man/translate/figs-rquestion]])