Would that mean if the chosen Option A is Apple, then Option B would only show Apple? But if Option A shows Orange, there would be no matching choices in Option B?
More usually, there’s an implied hierarchy - like filtering a list of Towns in Option B according to which State or County is chosen in Option A.
If I select “A” in the first drop down, I want to show, in the second drop down: Apple, Orange, Pinapple
If I select “B” in the first drop down, I want to show, in the second drop down: Apple, Pinapple, Strawberry
So you can see that the same option (here “apple”) can show whether A or B is selected, so it’s not really like your Town/state example, where each choice has his distinct list.