Need help. A microwave oven sold for. $95 and discounted to $45. What is the percent of decrease?

I got 47.4% is this right ?

A men's store. Reduced. The price of a hat from $12.50 to $10.00 what is percent of discount?
I got 1.25 or 1.3% is this right?

95 - 45 - 50

50/95 = 0.526 = 52.6%

2.5/12.5 = 0.2 = 20%