The chocolate bars had a total of 14 × 10 = <<14*10=140>>140 grams of sugar.
There was a total of 140 + 37 = <<140+37=177>>177 grams of sugar in all the candy she bought.
#### 177