I guess it's JavaScript and not VBScript, in VBScript the concatenation operator is &
If it's JavaScript, here's the solution!
Code: JavaScript
var a=40
var b=30;
c=parseInt(a)+parseInt(b);

And similar code for VBScript
Code: VBScript
Dim a=40,b=30
c=CInt(a)+CInt(b)