Algebra 1, word problem.

If a medium pizza costs $5 and a large pizza is $8, write an equation in standard form that models the possible combinations if you have $45. (Let m= medium and l= large.)

please explain in detail