Profit Loss & Discount Problems

I am a 13 year old kid. I have got 2 problems relating to profit, loss & discount which I am not able to solve. Can someone please help me out with the 2 problems? Here are they:

1. How much per cent above the cost price should a shopkeeper mark his goods so that after allowing a discount of 20% on the marked price, he gains 12%?

2. Ricky marks his goods at 40% above the cost price but allows a discount of 5% for cash payment to his customers. What actual profit does he make, if he receives $1064 after allowing the discount?

Thanks,

Ron