R works out whatever you give it. Type 189 * 2 in the console and it prints 378. The usual operators work: +, -, *, / and ^ for powers. Two more are handy for counting: %/% divides and keeps only the whole part, and %% gives the remainder.
To keep a result, give it a name with the assignment arrow <-. total <- 189 * 2 stores 378 in an object called total, and it appears in the Environment pane. Type its name to print it. Names are case sensitive, so Total is a different object.
Multiplication and division happen before addition and subtraction, so use brackets when you mean otherwise. A missing value is written NA, and any sum that includes one is NA too, because R won't guess the missing number.
Each line creates an object. Typing total on its own prints it in the console.