How to do

I have 2 choice component and a single inline list.

First choice is main category
Second choice is sub category

If i selects any one category from first choice,the second choice component shows the related choices in second choice component

After that ,now i got two options from first and second choice component values to display the filter values in inline list.

Please explain