Sam has a budget of $24 to buy ham and cheese to make sandwiches. If he bought only ham, he could buy 8 lb. If he bought only cheese, he could buy 3 lb. Let x represent the amount of ham and y represent the amount of cheese. Write an equation in standard form to model the different amounts of ham and cheese he can buy.