For this case, the first thing we must do is define variables.
We have then:
x: number of minutes.
y: total cost.
We then have a function for two different intervals.
These intervals are:
For [tex]0 \leq x \leq 500[/tex]:
[tex]y = 40
[/tex]
For [tex]x\ \textgreater \ 500[/tex]:
[tex]y = 0.18x + 40[/tex]