How much does it cost to have a dentist remove tobacco tar from your teeth?

Literal

Dentist [at-で] teeth [target-に] attached tobacco [genitive-の] tar [object-を] take-receive [conditional-と], cost [topic-は] how-much take [conjecture-でしょう]?

取ってもらう uses the benefactive ~てもらう ('have someone do X for me'), framing the dentist's action from the customer's perspective: 'have the tar removed.' This benefactive is crucial for learners — its absence would make the customer sound like they're doing it themselves. 歯についた is a relative clause modifying 'tar' ('tar attached to teeth'). The conditional ~と here is a rhetorical 'if/when' for a standard situation.