If a1=5 and a5=15, how do you find the formula for the nth term of the sequence?