total cost of the dinner is 40 $
sale tax = 7% of 40 $
[tex]\begin{gathered} =40\times\frac{7}{100} \\ =\frac{14}{5}=2.8\text{ \$} \end{gathered}[/tex]so the sales tax is 2.8 $
tip = 15% of 40 $
[tex]\begin{gathered} =40\times\frac{15}{100} \\ =6\text{ \$} \end{gathered}[/tex]so, the tip is 6 $
so the total amount paid is,
2.8 + 6 + 40 = 48.8 $
so the answer is 48.8 $