Let the monthly salary of A be x, monthly salary of B is (40000 – x). Savings of A = (100 – 85)% of x = 0.15x Savings of B = (100 – 95)% of (40000 – x) = 0.05 (40000 – x) 0.15 x = 0.05 (40000 – x) ⇒ 0.15x + 0.05x = 40000 × 0.05 ⇒ 0.2x = 2000 ⇒ x = 10000