The first and last term of a linear sequence (AP) are 6 and 10 respectively….