TV only has digital optical audio output.
Soundbar has digital optical audio input.
Get a Toslink optical cable that reaches and you are set.
To use the RCA inputs on the soundbar you would need an optical to analog converter and an optical cable.
Check the TV manual on how to use the optical output.