Final answer:
To solve this problem, first assign variables to represent the number of pens each person has. Then create equations based on the information given, such as Anshu giving pens to Bobby and Chandana and Chandana giving pens back to Anshu and Bobby. Finally, solve the equations to find the number of pens each person had. So, Bobby had 12 pens, Chandana had 48 pens, and Anshu had 24 pens.
Step-by-step explanation:
Let's assign variables to represent the number of pens each person already has. Let's say Bobby has x pens, Chandana has y pens, and Anshu has z pens.
Anshu gives Bobby and Chandana x pens each, so Bobby now has x + x = 2x pens, and Chandana has y + x pens.
Chandana gives Anshu and Bobby y pens each, so Anshu now has z + y pens, and Bobby has 2x + y pens.
Now, we know that they each have an equal number of pens, so 2x + y = z + y.
The total number of pens is 72, so 2x + y + z = 72.
From the equation 2x + y = z + y, we can simplify it to 2x = z.
Substituting this into the equation 2x + y + z = 72, we get 2x + y + 2x = 72 or 4x + y = 72.
Now, we have two equations: 2x = z and 4x + y = 72.
Using trial and error, we can find that x = 12, y = 48, and z = 24. So, Bobby had 12 pens, Chandana had 48 pens, and Anshu had 24 pens.