Do $27.58 x .06 (for the sales tax) which equals in total $1.65.
Then do $27.58 x .18 (for the tip) which equals $4.96 in total.
Later add the tip and tax together which you get $6.61,add that to $27.58 and you'll get $34.19 total adding the tax and tip