Final answer:
To find the total cost of Harry's ad in the newspaper, we calculate the additional cost for the extra lines and add it to the initial ad cost. The formula for solving this problem is total cost = initial ad cost + (number of extra lines * additional cost per line).
Step-by-step explanation:
To solve this problem, first we need to determine the number of extra lines beyond 5 lines. In this case, Harry needed 8 lines, so there are 3 extra lines. Next, we calculate the additional cost for the extra lines by multiplying the number of extra lines by $5. So, 3 extra lines * $5 = $15. Finally, we add the initial ad cost of $30 to the additional cost of $15 to find the total cost. Therefore, the newspaper would charge Harry $45 for his ad.
To solve this problem, you can use the following formula:
Total cost = initial ad cost + (number of extra lines * additional cost per line)