How do I use variables in functions/procedures

Liked it but didn't understand it? :thinking: