This question was asked in Ex 5.2, 19

determine the AP whose third term is 16 and the 7 term exceeds the 5th term by 12

Prem Kumar's image