To get the answer i came up with, I first found the relative velocity, 20-5=15, and then i divided the mass of the heavier Ball B by A to find the multiple difference in mass, 30/10=3, i then divided the relative velocity by this difference to get what i believed to be the change in velocity of Ball B, 15/3=5, so I thought the velocity of Ball B must be, 5+5=10.
I then remeabered that the momentum behind both balls together must always be the same. So i found the momentum of both balls, Ball A=200 Ball B=150, then added them together, 200+150=350. I then took away the after collision momentum of Ball B,
10*30=300 350-300=50, and then figured out the after collision velocity of Ball A through this, 50/10=5.
Unless i made some sort of mistake or everything above is pure bull, i thought the answer would have been,
Ball A=5 (I understand that this is really -5 as the ball would reverse in direction)
Ball B=10
Also when i say perfectly elastic i mean that no kinetic energy during the collision is converted into heat between molecules of the balls, so all energy remains in the momentum.