Solution:
There is a one-to-one correspondence between allowable formations and paths from (0,0) to (n,m) made up of n moves 1 unit to the right and m moves 1 unit up. The correspondence works as follows: There must be a mobot at (0,0), so start the path there. If that mobot is oriented to move up, then move to the right; if that mobot is oriented to move to the right, then move up. In doing so, you will meet another mobot, upon which you can repeat the above process, until you leave the lawn. Once you leave the lawn, there will be only one way to proceed to (n,m): either keep going right, or keep going up. (For the example in the problem, our path would be (0,0)−(1,0)−(1,1)−(1,2)−(2,2)−(3,2).)
Conversely, given any path from (0,0) to (n,m), we can derive back a mobot formation: place a mobot at every lattice point of the lawn that the path touches, and don't orient that mobot in the same direction as the path takes when leaving that point.
It is easy to check that this is indeed a one-to-one correspondence as claimed. Every path from (0,0) to (n,m) consists of n moves to the right and m moves up done in an arbitrary order, and there are precisely (mm+n)=m!n!(m+n)! orders.