Different styles of coding are also known as paradigms. A common style is called functional programming, or FP for short.
In functional programming, we use a lot of functions and variables.
Make sure to pick def, followed by getTotal.
def
getTotal