Let's define the number of gray shirts Joanie has as \( g \).
According to the problem, we can derive the following relationships:
- Black shirts: Joanie has \( 3g + 3 \) black shirts (3 times as many black shirts as gray shirts plus the 3 new black shirts).
- White shirts: Joanie has \( 5g - 1 \) white shirts (5 times as many white shirts as gray shirts minus the 1 white shirt she donated).
- Brown shirts: Joanie has \( \frac{g}{2} \) brown shirts (2 times more gray shirts than brown shirts implies there are half as many brown shirts as gray shirts).
- Equality of black and white shirts: Since the number of black shirts equals the number of white shirts, we can set up the equation: \[ 3g + 3 = 5g - 1 \]
Now, we can solve for \( g \):
-
Rearranging the equation: \[ 3 + 1 = 5g - 3g \] \[ 4 = 2g \]
-
Dividing by 2: \[ g = 2 \]
Now, we substitute \( g = 2 \) back into the equations to check:
- Black shirts: \( 3(2) + 3 = 6 + 3 = 9 \)
- White shirts: \( 5(2) - 1 = 10 - 1 = 9 \)
- Brown shirts: \( \frac{2}{2} = 1 \)
All values check out:
- Joanie has 9 black shirts and 9 white shirts, which are equal.
- Joanie has 2 gray shirts.
- Joanie has 1 brown shirt.
Thus, the number of gray shirts Joanie has is \( \boxed{2} \) (Choice OB).