So, I came up with something like this. I didn't find the final equation algebraically, but simply "figured it out". And I'm not sure how much "correct" this solution is, but it seems to work.
7.1m questions
9.5m answers