Marly has to get some cavities filled at the dentist. The dentist charges a fee of $35 plus $43 per cavity. If Marly ends up having a bill of $164, how many cavities did Marly have filled?

a 1
b 2
c 3
d 4