You can connect a stranded wire to a solid wire with wire nuts by following the below process:
To begin, keep the exposed stranded wire longer than the solid wire by removing the insulation from both wires
The next step is to wrap the stranded wire with the solid wire
Next, secure the twisted wires by twisting an appropriately sized wire nut over them
Finally, conduct a pull test on the twisted wires so you are assured that they are securely fastened and not at risk of coming loose