How to sync target temperate across different items

Dear all,

I have a nest thermostat , homekit thermostat and a physical air conditioner, all of them have an item of “target temperature” in openhab. What is the best way to update the other two values if one update? (ie A -> BC, B->AC, C->AB)
Thanks.

Can you post your items, please?
Have you tried to write a rule?