The artifact and the enchantment may be the same permanent.

Artwork
Loading artwork…
When We Were Young
Kamigawa: Neon Dynasty · #43 · EN
Nonfoil—Foil—
Card rules
Up to two target creatures each get +2/+2 until end of turn. If you control an artifact and an enchantment, those creatures also gain lifelink until end of turn.
Since Imperial custom strictly forbade the Emperor to reveal her name—even to Kaito, her closest childhood friend—she had to suffer him calling her "your emperorness" for much of their shared youth.
Uncommon · Illustrated by Eric Deschamps
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Whether you control an artifact and an enchantment is checked as When We Were Young resolves.
“Those creatures” refers to the target creatures, not the artifact and the enchantment.