If you have mistakenly typed "two-7year" instead of what you intended, here are some possible correct suggestions. It seems like you may be referring to a time span, so you could use "two to seven years" or "two-seven years". Alternatively, if you meant to denote age, you can simply write "two or seven years".