SSC CGL 18 Sep 2024 Shift 3 — Question 74 (Algebra)

Medium2024
Anna and Ben each have a collection of marbles. If Anna gives one marble to Ben, they will both have an equal number of marbles. Conversely, if Ben gives one marble to Anna, she will end up with three times the number of marbles that Ben has. What is the total number of marbles they both have?