A research team conducted a study and concluded that the average weight of a certain type of fruit in a large orchard is between 180 grams and 220 grams. If this conclusion was based on a random sample and a calculated margin of error, what was the margin of error for this study?
10 grams
20 grams
30 grams
40 grams