Extensions of absolute values on two subfields