Based on the text provided, what does a minimum spanning tree optimize?

A minimum spanning tree optimizes the a graph in a way that minimizes the sum of all the weights of the edges