Answer:
The restaurant sold 41 ham dinners.
Explanation:
Let's call the number of ham dinners sold as "x".
We know that the total revenue from ham dinners is $12 * x and the total revenue from turkey dinners is $15 * 35.
So, the total revenue from both dinners is $12 * x + $15 * 35 = $1017.
We can now set up an equation:
$12 * x + $15 * 35 = $1017
Expanding the equation:
$12x + $525 = $1017
Subtracting $525 from both sides:
$12x = $1017 - $525 = $492
Dividing both sides by 12:
x = $492 / $12 = 41
So, the restaurant sold 41 ham dinners.