Optimal Reinsurance From The Perspectives Of Both An Insurer And A Reinsurer