Ash here from the Shopify team. Welcome to the Shopify Community!
To achieve what you're looking for, a product options application sounds like it would be the perfect solution! There are a number of great product option apps out there to choose from, and here are some top-rated ones for you to check out:
While these are all great options that could get the job done, if you'd like to explore even more options please feel free to do so in our App Store. Here's a link with a pre-filled search for product option apps.