(The number of times that B is A is not given in the question. Just set the number of times here, but the method is the same. )
Available: A is (82-7)÷( 1+2) = 25 and B is 82-25 = 57.