isolate t:

300(1.o5)^t = 1000(0.92)^t

take the log of each side.

log300 + t log1.05 = log1000 + t log.92
I assume you can take if from there.