Why is the bracket present here in this code after b in if sum([x,y]) <=b "]" +[-1])

`return max([sum([x,y]) for x in keyboards for y in drives if sum([x,y]) <= b]+[-1])`
someone please explain the code