Here are the steps to solve these problems:
1) T at 5000 ft depth = Ts + αD
= 75 + 1.5(5000/100)
= 75 + 75
= 150 F
2) Geothermal gradient = (T2 - T1)/D2 - D1)
= (122 - 80)/2200
= 1.5 °F/100ft
So the geothermal gradient of the sandstone layer is 1.5 °F/100ft.