What did a guild do for the merchants?

A. maintained excellence
B. provided security
C. bought raw materials
D.paid the taxes