A ranks first with A33=3! =6
There is A33=3 at the end of line B! =6
A first, b last, 2! =2
Then four! -6-6+2= 14
2 1440
First, there are four languages! =24
There are 5 spaces, 3 math spaces, A35=5*4*3=60.
Then * * * has 24*60= 1440.