Goldman Sachs has posted $3.07 billion in net earnings for the third quarter of 2022, the company said in a statement Tuesday.