The piecewise function for the cost of the ad "c" that depends on the number of lines "x" is:
[tex]\begin{gathered} c(x)=20,\text{ when x}\leq4 \\ c(x)=20+6(x-4),\text{ when x>4} \end{gathered}[/tex]The first piece of the function is useful to calculate the cost of 1, 2, 3, or 4 lines. Remember that "x" is the number of lines.
But since we need to calculate the cost of 5 lines, we are going to need the second piece of the function:
[tex]c(x)=20+6(x-4)[/tex]Because the condition to use it is that x is greater than 4, and since 5 is greater than 4, we can use it.
Thus, substitute x=5 into the function:
[tex]\begin{gathered} c(x)=20+6(x-4) \\ \text{Substituting x=5} \\ c(5)=20+6(5-4) \end{gathered}[/tex]And solve the operations. First, solve the subtraction inside the parenthesis:
[tex]c(5)=20+6(1)[/tex]Now, solve the multiplication 6(1) which is equal to 6:
[tex]c(5)=20+6[/tex]And finally, add 20 and 6:
[tex]c(5)=26[/tex]The cost of an ad with 5 lines is $26
Answer: $26