Show images from selected items (choice component)

Let me know how to create an image display function according to the selected product list.

The product table consists of product name, product code, color, picture Product name A Product code AA2 The color of the a-blue product from the above assumption Want to create a function using Choice In the selected list, select the product from the color of the product. And show the image according to the selected list

Can anyone help me, I don’t know how to create these complex functions, if anyone has a template to study it will be very grateful