I would not consider this an elementary problem. It involves solving two first order differential equations simultaneously and it's fairly involved. Since the orig. poster has shown some work, I think I'll pitch in with how I think the problem should be approached; however, this approach seems much too complicated for the estimated level. Maybe someone will find an easier approach.
The problem is easiest when viewed in terms of flux between 3 compartments : A, B and C (C is the decay product of B).
A can only decrease over time as decay occurs. B has both influx (due to decay of A) and efflux (due to decay of B to C) occurring simultaneously.
Let [tex]N_0, N_A, N_B, T_A, T_B, \lambda_A, \lambda_B[/tex] represent respectively initial total number of A-atoms, number of A-atoms present at time t, number of B-atoms at time t, half-life of A, half-life of B, the decay constant of A and decay constant of B. The decay constants are related to the respective half-life by [tex]\lambda = \frac{ln 2}{T}[/tex].
Then the process can be modeled by the simult. d.e.s :
[tex]\frac{dN_A}{dt} = -\lambda_AN_A[/tex] ---(1)
[tex]\frac{dN_B}{dt} = -\frac{dN_A}{dt} - \lambda_BN_B = \lambda_AN_A - \lambda_BN_B[/tex]---(2)
Solving those is not difficult, but isn't elementary either. (1) is easily solvable by separation of variables, then the result is substituted into (2). This requires an integrating factor to solve.
The final expression I get for [tex]N_B[/tex] as a function of t is :
[tex]N_B = (N_0)(\frac{\lambda_A}{\lambda_B - \lambda_A})(e^{-\lambda_At} - e^{-\lambda_Bt})[/tex]
or equivalently,
[tex]N_B = (N_0)(\frac{T_B}{T_A - T_B})({(\frac{1}{2})}^{\frac{t}{T_A}} - {(\frac{1}{2})}^{\frac{t}{T_B}})[/tex]
in terms of the half-lives.
The instant [tex]\tau[/tex] at which [tex]N_B[/tex] is maximised is easily computed by setting [tex]\frac{dN_B}{dt} = 0[/tex]
giving [tex]\tau = \frac{1}{\lambda_B - \lambda_A}ln(\frac{\lambda_B}{\lambda_A}) = \frac{ln(\frac{T_A}{T_B})(T_A)(T_B)}{(ln 2)(T_A - T_B)}[/tex]