Info:
I am doing it in Python. Hope it will help you.
Code:
am = float(input('Enter the amount: '))
stx = (am*0.04)
slt= (am*0.02)
tl = stx+slt+stx
print(f'Sales Tax: {slt}, State Tax: {stx}, Grand Total: {tl}')
Result:
Enter the amount: 15
Sales Tax: 0.3, State Tax: 0.6, Grand Total: 1.5