a is 560
b is 1020
thx for letting me cheat on my aops test whoever posted these- xD
1 is still wrong
it's not right :/ but thx for trying