how to use system.xml in Magento 2

In Magento 2, the system.xml file is used to define configuration settings for your module. These settings appear in the Magento admin panel under Stores > Configuration. Here's how to create and use system.xml in Magento 2: