just Derive the general equation, it should only take 5 minutes...

953 shares