For a reaction 2A+B→2AB, it is found that doubling the concentration of both the reactants the rate increases to 8 times that of initial rate but doubling the concentration of B alone doubles the rate. Then the order of the reaction with respect to A and B are :