Correct Answer  Option 2 : 50%
Given:
Bags A and B were sold at a profit of 25% and 20% respectively.
The cost price of B is the same as selling price of A.
Formula used:
Profit or Gain = Selling price – Cost Price
Loss = Cost Price – Selling Price
Profit percentage = (Profit / Cost Price) × 100
Loss percentage = (Loss / Cost price) × 100
Calculation:
Let cost price of B be Rs. 1000 then selling price of A will be 1000.
Profit 
25% 
20% 

CP 
SP 
A 
1000/1.25 
1000 
B 
1000 
1200 
⇒ CP of A = 1000/1.25 = 800
Now,
If A is sold at selling price of B,
CP of A = 800
SP of A = 1200
Profit % = {(1200  800)/800} × 100% = 50%
∴ Profit % is 50%