For a reaction , it is found that doubling the concentration of both the reactants increases the rate to eight times that of initial rate but doubling the concentration of B alone doubles the rate. Find the order of the reaction with respect to A and B.