Ali made 5 circles with 8 boxes each so he used 5*8 = <<5*8=40>>40 boxes
There were 80 boxes to start with so now there are 80-40 = <<80-40=40>>40 boxes left
Ernie used 10 boxes to make one circle so with 40 boxes he can make 40/10 = <<40/10=4>>4 circles
#### 4