Arithmetic Sequence problem involving terms of the sequence and the value of that term

arithmeticsequences-and-series

The full question is here:

In an arithmetic sequence, the first term is $2$ and the second term is $5$. Term number $N$ of
the sequence has a value of $M$, such that $M$ is the largest two-digit number in the sequence.
What is the value of $M + N$?

I tried to make a possible sequence and solve that problem from there but have no success, in fact I kind of don't understand where to start. Any help will be appreciated, thank you.

Best Answer

Hint: Given that $$a_1=2,a_2=5$$ so we get $$5=2+d$$ so $$d=3$$ and you will get $$a_N=2+(N-1)\cdot 3=M$$