a = 400+70+6
b= 90 +5
c=900+9
e= 300+20
1=70+2
g=100+1
lockers 1, 4, 9, 16, 25, 40, and 49 are open
i ran through it by the other answer is wrong