For a reaction, A+B→C+D, if the concentration of A is doubled without altering the concentration of B, the rate gets doubled. If the concentration of B is increased by nine times without altering the concentration of A, the rate gets tripled. The order of reaction is: