How should connect my light to the wires in these three cables?
You probably have a standard switch loop and a cable that goes out to another part of the circuit.
It's basically this with an extra cable coming in, which would simply be connected by color to the supply cable wires.

You'll have to do some sleuthing with your multi-meter to see what's what.