Will it be a high quality backlink when we get backlinks from two subdomains of a same domain?

My question is that will I get high quality backlinks if we get baclinks from two subdomains of a same domain. For example if there are two subdomains of a same domain – https://x.example.com and https://y.example.com and they both gives a backlink to a site https://website.com so will website.com get two high quality backlinks from that two subdomains or not or there will be different criteria applied by the search engines? If a different criteria will be applied what will be that criteria?

Thanks