Worked out the math from linear relationships between momentums to the end