Interactive component Help

I am figma and I have ran into a road block and am asking for anyones help. I am trying to build a button that allows you to choose the number of visitors that will be attending an art exhibition, I want this button to be able to show the user once they click the arrow and select one or two tickets that in the square box it will show the price. I can not find any tutorials online anywhere. I attached photos of how i thought I would be able to figure this problem out. Please hoping someone can point me in the right direction ! Thank you