Need help creating a fuction

please delete this post. I have found the answer.