How to "convert" variable into real text for using in another variable

Im currently using this script to store a happening ingame to a variable system displaying happenings on the HUD screen:
$gameVariables.setValue(381, "\\c[18]This shows up on the HUD.\\c[0]");

Im using OrangeHUDLineVar to display the last 5 events in plain text on the hud.
I.e. "Ah nice, I found some apples."

But instead of "Ah nice, I found some apples." I want to write "Ah nice, I found 3 apples."

So there my problem arrives, because I want to store variables and then keep them unchanged in the hud text as a story of what happened.

If i first get 2 apples and my HUD message becomes "Ah nice, I found 2 apples" then if I find 3 more both messages then shows "Ah nice, I found 3 apples"

So how can we "convert" the variable into real text for using in another variable. Can this be done with taking out the value of a variable for using as plain text in a messagebox.

in what way would you handle this? Im lost
\V[n]
Is this what you're looking for?
In case it isn't...
$gameVariables.setValue(1, "text begins" + $gameVariables.value(2) + " optional text.")
@Poryg 's solution is better than mine. As a coder, I'm ashamed of not coming up with that solution earlier lol. In javascript, adding an integer to a string will convert it to a string ("This number is: " + 5 = "This number is: 5").

My previous solution (\V[n]) is what you would use inside the message box.
@Poryg Thank you, that is just what I needed! I did not know 🙂

Thanks to all of you 😀
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/how-to-convert-variable-into-real-text-for-using-in-another-variable.112912/