How to solve it and how to calculate the gst and pst

Given:-
Given amount is $50.
Price of article is $24.
GST is 7%.
PST is 7%.
To find:-
The remaining amount.
The GST amount is,
[tex]\begin{gathered} 24\times\frac{7}{100}=0.24\times7 \\ \text{ =1.68} \end{gathered}[/tex]The PST amount is,
[tex]\begin{gathered} 24\times\frac{7}{100}=0.24\times7 \\ \text{ =1.68} \end{gathered}[/tex]So the total tax amount is,
[tex]1.68+1.68=3.36[/tex]Now the total amount of the article is,
[tex]24+3.36=27.36[/tex]So the remaining amount is,
[tex]50-27.36=22.64[/tex]So the remaining amount is $22.64