If the 3rd and the 5th terms of an A.P are 6 and 10 respectively,…