For the SHM one, the answer must be (D) — this is the only option with the correct units for a period (seconds).
Note from the equation v^2 = a^2 - b^2 x^2, the LHS has units m^2 s^(-2). So the RHS does do. Thus a must have units m/s. Also, b^2 x^2 must have units m^2 s^(-2), so bx has units...