Since there is no friction on the ramp so there is no loss of energy in terms of frictional loss
So here we can use mechanical energy conservation law in this case
so here we will have

here we know that

also we know that

now we will have

now by solving above equation we have

so here as we know all identical balls are released from same height so all balls must have same speed at the end