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