How to knit yarn that is thick and thin?

What size needles did u use?

Thanks
Kathy