I have been with this for several days to see if you can help me. I need to take the data of the variable $result, which is 6, from the operation function to my shortcode, how can I do this?

```

operation();

function operation(){
$result=5+1;
return $result;
}

function my_function($result){ //
return  $all=$result+5;
}
add_shortcode( 'my-shortcode', 'my_function' );

```