add() { echo $(( $1 + $2 )) }
This just adds the two input numbers with Bash arithmetic and prints the sum.