The school needs to buy 30 - 12 = <<30-12=18>>18 robes.
So the school will spend 18 x $2 = $<<18*2=36>>36.
#### 36