Run a workflow “When an input’s value is changed”
You can make it work in both directions by making sure each input is autobound and having 2 workflows (1 for each input)