After dividing x by a, you should have gotten rid of the units of mass so your final answer shouldn't have any.
I converted everything to SI units and went on from there, it makes everything easier in my opinion. I'm not sure if I did it right and I probably shouldn't post my answer but I think you should have units of length^(9/2)*time^(9/2) at the end.