Final answer:
The system of equations that models the situation is p=2h-3 and h+p=9.
Step-by-step explanation:
To model the situation, we can set up the following system of equations:
The first equation represents the number of popcorn boxes (p) as three less than twice the number of hot dogs (h). The second equation represents the total number of snacks (9) as the sum of the number of hot dogs (h) and the number of popcorn boxes (p).
By solving this system of equations, we can find the values of h and p which represent the number of hot dogs and popcorn boxes that Justin bought, respectively.