The compression force at the bottom of a square

Question
The compression force at the bottom of a square footing is 40kips. The bending moment is 30 kip-ft'. Find the maximum soil pressure for a footing width of 5'.
Question image 1