To solve the problem, we need to find the age of B given the ratio of ages and their sum.
- Ratio: The ages of A and B are in the ratio 3:5.
- Sum of Ages: The total of their ages is 40 years.
- We use the ratio to express ages in terms of a common variable.
- Ratio of ages = 3:5
- Sum of ages = 40 years
Let the common multiplier be \( x \).
Then, A's age = \( 3x \), B's age = \( 5x \).
Sum:
\[
3x + 5x = 40 \Rightarrow 8x = 40 \Rightarrow x = 5
\]
\[ 5x = 5 \times 5 = 25 \]
The age of B is 25 years.
A shopkeeper sells an item at a 20 % discount on the marked price and still makes a 25 % profit. If the marked price is 500 rupees, what is the cost price of the item?