There is a filter that runs when acf inserts or updates fields https://www.advancedcustomfields.com/resources/acf-save_post/
You would create a filter function and in this function get the values from the 2 fields and then update the 3rd field https://www.advancedcustomfields.com/resources/update_field/