.
In this problem, there are two unknowns, "a" and "b";
so, you need to construct two equations for these two unknowns.
There is the STANDARD WAY to construct these two equations:
first equation says that = (both sides represent the common difference)
second equation says that = (both sides represent the common difference, again).
It is the way on how @MathTherapy solves the problem in his post.
How @Mathlover1 and @josgarithmetic do it, it looks like chewing gum in the mouth
instead of solving problem and instead of right teaching . . .
You, probably, will solve tens of such problems in your life (in your school years).
THEREFORE, you need to know the right way and do not spend your time for nothing . . .
To see many other similar (and different) problems solved, look into the lessons
- One characteristic property of arithmetic progressions
- Finding number of terms of an arithmetic progression
- Inserting arithmetic means between given numbers
in this site.
Also, you have this free of charge online textbook in ALGEBRA-II in this site
- ALGEBRA-II - YOUR ONLINE TEXTBOOK.
The referred lessons are the part of this online textbook under the topic
"Arithmetic progressions".