when inserting the same license in a subdomain of the same domain it does not let me, I have read that if it allows it, how is it done
All of the themes on the Envato market are under the same license, details: https://themeforest.net/licenses/standard
You can use one license per end product to use any pre-built website you desire or mix them, but you cannot use the theme license on two domains.
The only exceptions are for subdomains or subfolders. You can register unlimited subdomains with one license key, as long as the main domain is registered under the same key.
This also applies to subfolders on localhost installations.