The officer sets your days
GOV.UK says you'll get a stamp in your passport showing how many days you can stay. An onward or return booking gives the officer a concrete departure date to base that on. Show a date that matches what you're asking for.
Accommodation can be checked too
Alongside the onward ticket, GOV.UK lists proof of accommodation, "for example, a hotel booking confirmation", among the things you may need to show at Mexican border control. If you're moving around, have at least your first stay booked.
Arriving by land
GOV.UK says British nationals entering Mexico by land must fill in an immigration form online. Keep the printed e-gate ticket you're given: you must show it when you leave.