Profit Maximizing Rule For Perfect Competition