Decide which composed functions make sense by checking that the value that one function passes to the other is the right kind of input.
License: CC BY-NC-SA by Khan Academy