She previously had 2 cartons + 7 cartons = <<2+7=9>>9 cartons of berries.
Emilia needs to buy 42 cartons - 9 cartons = <<42-9=33>>33 cartons of berries.
#### 33