Fourth term of a G.P. is 40 and the tenth term is 2560. find the seventh term.