In a TLS connection, the client and the server first agree upon the version of TLS that they are going to use, which is the highest that both support. Then, they agree upon cipher suites that they are going to use. Finally, they establish a common key for encryption and the data transfer can begin.
See an illustrated guide that explains how a TLS connection is established.