The price of a visit to the dentist is calculated according to the formula 50+100n where n is the number of cavities the dentist finds.

On your last visit to the dentist, 2 cavities were found.

What was the cost of your visit?