Your combined form should be 300/140=1.07^x/1.05^x. Take the log (any base) of both sides. Do you see how the laws of logarithms log(a*b)=log(a)+lob(b) and log(a^x)=x*log(a) can make this the easiest linear equation EVAR!