If tn represents nth term of an A. P., t2+t5−t3=10 and t2+t9=17 , find its first term and its common difference.