This is an example for one hiker for three days.
Every hiker has different habits, needs and tastes.
Your list will be different. It is possible to purchase most of your food before you start your hike and package it for mail drops. List each day's meals and snacks, and count total servings for the hike. Add extra servings of lighter food in case of delays or emergencies. Use a simple chart to estimate needs for each section of your hike.