I got an answer by trial and error but need to know how to set the problem up. Bob bought 10 movies for $153. The DVDs were $12 and the BluRays were $23. How many of each did Bob buy? 7 DVDs and 12 BluRays. Thank you for help.

Yes, 7 DVDs but only 3 BRs. Remember there a total of 10 movies were bought.

Ok. I thought I had it figured out. I think I typed it wrong. Is there a way to set it up to figure it out?

here's how

DVD + BR = 10 and
12 X DVD + 23 X BR = 153
solve first equation for BR in terms of DVD
then substitute in the second equation

To set up the problem, you can start by assigning variables to the unknown quantities you need to find. Let's call the number of DVDs Bob bought "d," and the number of BluRays "b."

According to the given information, Bob bought 10 movies in total. Therefore, the sum of DVDs and BluRays should equal 10:

d + b = 10

Additionally, it is mentioned that the DVDs were $12 each and the BluRays were $23 each. So the total cost of the DVDs and the total cost of the BluRays should add up to $153:

12d + 23b = 153

Now you have a system of two equations:
Equation 1: d + b = 10
Equation 2: 12d + 23b = 153

You can solve this system using substitution, elimination, or graphing. One way to solve it is by substitution.

From Equation 1, we can solve for one variable in terms of the other. Let's solve for d:

d = 10 - b

Now we can substitute this value of d into Equation 2:

12(10 - b) + 23b = 153

Simplifying this equation will yield the value of b. With the value of b, you can substitute it back into Equation 1 to calculate the value of d.