Karen took out 48/6 = <<48/6=8>>8 cards from the box.
Originally, the box had 83-40 = <<83-40=43>>43 cards.
#### 43