Step 1: Let the new salaries (after adding Rs. 4000 to each) be \( 40k \) and \( 57k \) for some constant \( k \), matching the given ratio 40:57.
Step 2: The original salaries, before the addition, were \( 40k - 4000 \) and \( 57k - 4000 \), and these must be in the ratio 2:3.
Step 3: Setting up \( \frac{40k-4000}{57k-4000} = \frac{2}{3} \) and cross-multiplying: \( 3(40k-4000) = 2(57k-4000) \), giving \( 120k - 12000 = 114k - 8000 \), so \( 6k = 4000 \) and \( k = \frac{2000}{3} \).
Step 4: Jimmy's new salary is \( 57k = 57 \times \frac{2000}{3} = 38000 \), so his original salary before the addition is \( 38000 - 4000 = 34000 \).
\[ \boxed{\text{Rs. } 34000} \]