Hello Steven
The Sonos Beam is usually connected to the TV via HDMI ARC. If the TV does not have an HDMI ARC output, you can also connect the SONOS Beam via the optical audio output on the TV.
Ideally, you need two HDMI connections on your TV, at least one of which has ARC (this is usually written directly on the port), or an HDMI input and an optical output.
Greetings, Christoph