you give integer x y you perform type operation pay dollar increase decrease integer 1 for example x 0 y 7 possible outcomes operation x 0 y 6 x 0 y 8 x 1 y 7 x 1 y 7 pay b dollar increase decrease integer 1 for example x 0 y 7 possible outcomes operation x 1 y 6 x 1 y 8 your goal give integer equal zero simultaneously ie x y 0 there requirement in particular possible x1 y0 xy0calculate minimum dollar spend