One punchline to find here; it’s simple using of a function machine in each case, both finding an output or finding an input. These seem popular in my lessons… ...