Sarah chose 3 shells to purchase at a souvenir shop. The price tag for the first shell indicated $16, the second shell indicated $18, and the third shell indicated $12. After adding tax, the clerk at the shop said the total cost was $50. What percentage of the total cost was the tax?
F 12%
G 8%
H 4%
J 10%