Answer:
Equation: y = 2.5x + 5
Cost: $30
Step-by-step explanation:
The equation of a line can be calculated using the following:

Where m is the slope and it is calculated as:

Where (x1, y1) and (x2, y2) are points on the line. If we take the number of lines of the ad as x and the Cost as y, then the table gives us two points (3, 12.50) and (5, 17.50)
So, replacing (x1, y1) by ( 3, 12.50) and (x2, y2) by (5, 17.50), we get that the slope and the equation are:


Now, to find the cost of an ad that is 10 lines long, we need to replace x by 10 and calculated y as:

Therefore, the cost of the ad is $30