Help for base entrance code

The code for have access to the base is: 1-4-8

You need to solve this quest:

The square in bottom right (you need to find the number to replace the letters)

1+r(the number of rocks) x b (the barracks)