We have the following function for this problem:

Where 't' represents the time in minutes, and our 'f(t)' returns the cost.
For f(t) = 6, we want to know the value for 't'. Clearly, it is not in the first interval, so let's check for t >10.

Solving for 't':

Mary can talk for 93 minutes.