The fourth and eighth terms of an Arithmetic Progression are 16 and 40 respectively. Find…