Question 22Shop A has 50 pens and Shop B has 26. After both sell the same number of pens, the ratio remaining in A to B is $3:1$. How many pens did each shop sell?