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.
9.4m questions
12.2m answers