Question

Show algebraically that the price earnings ratio formula is identical to the number of shares outstanding times stock price formula. Why are the values obtained from these two methods sometimes different?