Initial Price = p = 315$
sales tax = r = 8% of total price.
Tax amount = a = r/100 * p
a = 8/100 * 315
a = 126/5 = 25.2
The final cost (c) would be the sum of the initial cost (p) and sales tax (r). Therefore, we can write this equation as:
[tex]c=p+\frac{r}{100}\cdot p[/tex][tex]c=p+a,\text{ as (a = }\frac{r}{100}\cdot p\text{)}[/tex][tex]c=315+25.2[/tex][tex]c=340.2[/tex]