networking – Kali Linux not connected to Internet in Virtualbox

So I have been learning ethical hacking and in the course it was said that you need to have the Windows 10 (virtual) and Kali virtual machine set to NAT Network not NAT. So I did that but when I opened my Kali machine it was not connected to internet but my virtual Windows was connected to Internet. So I don’t know what the problem is. I searched on Google and I found something similar like this on which said that when you set to NAT Network the VMs will not have any access to Internet. Someone said that set Network connection to Kali as NAT and let Windows 10 be NAT network but I still no success. So I don’t know what should I do so guys if someone has a solution then please send it to me.
Thank you.