Forum Academy Marketplace Showcase Pricing Features

Simple question about buttons in forms

I am trying to do a very simple thing
Please see the attached image
I build a simple form - and i want that when the user clicks on one of the buttons (SEE RED ARROW) - the background color of the chosen button will be green and when the user submits the form (red button) I can pass the chosen button to as a data.

If the user clicks on one button and then clicks on another button - the first button will be gray agian and the new clicked button will be green. (so there is only one option to choose)

Looks simple but not sure how to do it…