2. What is the yield to maturity of a $1000 par value bond with an a. 10% semiannual coupon and 20 years to maturity and a $1,000 price?

2. What is the yield to maturity of a $1000 par value bond with an a. 10% semiannual coupon and 20 years to maturity and a $1,000 price? b. What is the yield to maturity of a $1000 par value bond with a 6.5% semiannual coupon and 13 years to maturity and a $890 price?I will also need the formula used for these questions. Thank you.