If E=1/2Av^2+Bmx find the dimensions of A and B(Where E is energy,v,m and x are velocity,mass and distance respectively)