Member advised to use the homework template for posts in the homework forums.
Here is all the work I have done so far (hopefully it is right). My brain somewhat shuts down when it comes to ratios.
m1a1 = m2a2
2m1a1 = m2a2
Those two equations contradict each other. Why don't you write an equation for m1 in terms of m2. Then you can substitute for m1 or m2 into the first equation above.
P.S. Welcome to Physics Forums.
Edit: Sorry PhantomJay. I just now saw your post.