In a store, an Uno Giant Family Card costs $12. When Ivan bought ten pieces, he was given a discount of $2 each. How much did Ivan pay in all?
Please reason step by step, and put your final answer within \boxed{}.
user