2

I don't think this is possible to exactly solve, but here is my attempt with probabilities, which leads to a complicated expression (which I have not quite worked out yet):


Only top voted, non community-wiki answers of a minimum length are eligible