The domain defines the set of all permissible inputs for a function or the scope of a logical argument. It's…