Given by the problem statement, there are two conditions we must satisfy: Weight and Quantity. We can create equations with the information given:
Lets make A represent pennies after 1982 and make B represent pennies before 1982.
Now lets make some equations (remember that units are important!, don't forget them if they are part of the problem!)
The total number of coins:
A + B = 1287 [pennies] ------------(Equation 1)
The total weight of the bag:
2.5 [grams/penny] * A + 3.1 [grams/penny] * B = 3601.5 [grams] ------------(Equation 2)
We have 2 equations and 2 unknowns. This is a solvable problem! (I omitted the units in my work, but it's good practice to either write them in as you work to keep track of them or at least remember to include it in your final answer. Keeping track of units will help you on complex science-type problems)
Lets work for pennies made before 1982, or what we call 'B'. To do that we need to find out what A is in terms of B.
A = 1287 - B
Plug in A into the Equation 2:
2.5 (1287-B) + 3.1B = 3601.5
Now Solve for B:
3217.5 - 2.5B +3.1B = 3601.5
0.6B = 384
:: B = 640
Now that B is known, use Equation 1 to find A:
A + 640 = 1287
:: A = 647
So there are 647 Pennies made after 1982 and 640 Pennies made before 1982 in the bag. Let's check our work using equation 2.
2.5 [grams/penny]*647 [pennies] + 3.1 [grams/penny]*640 [pennies] = 3601.5 [grams]
(True statement. Our solution is correct)