The first term of an AP is 4 and the sum of the first three…