how to do function notation problems