Dear student,
Please find the attached solution to your problem below.
Let the subscript of the term represent the particle.
Now, distance travelled by proton and electron is same under given constraints. (xp = xe)
Hence,
Hence, t/T = te/tp = (M/m)½
Hope it helps.
Thanks and regards,
Kushagra