Let amount A invests be A
Then amount B invests = mA
Amount C invests = A + mA
Amount D invests = mA + A + mA, or 2mA + A
We then get: A + mA + A + mA + 2mA + A = s
3A + 4mA = s
A(3 + 4m) = s
A, or amount A invests =
Amount B invests:=======>
Amount C invests:======> ======>
Amount D invests:=======> =======> ======>