The first thing is that when you want to update the title of a post based on ACF fields you need to use the acf/save_post hook. The reason is that all of the other fields may not be saved/updated when a specific field’s acf/update_value hook is fired.
For the rest you should look at the documentation for using a relationship field.