After 5,700 years, which is one half-life of carbon-14, the amount of carbon-14 in the sample will be reduced by half. Since the sample starts with 20 grams of carbon-14, after 5,700 years it will have:
20 grams / 2 = 10 grams
Thus, the answer is 10 grams.