Back to Practice
#0088
Ratio Based Partnership Share
EasyAptitude12 min10 XP
Problem
A invests 6000 for 8 months. B invests 8000 for 6 months. If total profit is 7000, find A share.
Why This Matters
Partnership questions look different, but most reduce to comparing effective capital: amount times duration.
Examples
Example 1
Input6000 for 8 months, 8000 for 6 months, profit 7000
Output3500
Both effective investments are equal.
Constraints
- Use investment times time.
- Split profit by ratio.
- Do not compare investment alone.
CodeReasoning
A invests 6000 for 8 months. B invests 8000 for 6 months. If total profit is 7000, find A share.
Visible browser tests run here when available.
Testcases1 visible / 3 hidden categories
Equal effective capital
InputA 6000x8, B 8000x6
Expected3500
The effective capital ratio is 1:1.
Hidden Test Categories
unequal durationsthree partnersloss sharing