Question 999707
<pre>
Let the number of 37c stamps be x
Let the number of 80c stamps be y


                      Value      Value
Type       Number       of         of
 of          of        EACH       ALL
stamp      stamps     stamp     stamps
-------------------------------------------
37c stamps    x       $0.37     $0.37x
80c stamps    y       $0.80     $0.80y
-------------------------------------------
TOTALS       34      -----     $16.45

 The first equation comes from the second column.

  {{{(matrix(3,1,Number,of,37c stamps))}}}{{{""+""}}}{{{(matrix(3,1,Number,of,80c stamps))}}}{{{""=""}}}{{{(matrix(4,1,total,number,of,stamps))}}}

                 x + y = 34

  {{{(matrix(4,1,Value,of,ALL,37c stamps))}}}{{{""+""}}}{{{(matrix(4,1,Value,of,ALL,80c stamps))}}}{{{""=""}}}{{{(matrix(5,1,Total,value,of,ALL,stamps))}}}

           0.37x + 0.8y = 16.45

Get rid of decimals by multiplying every term by 100:

          37x + 80y = 1645

 So we have the system of equations:
           {{{system(x + y = 34,37x + 80y = 1645)}}}.

We solve by substitution.  Solve the first equation for y:

           x + y = 34
               y = 34 - x

Substitute (34 - x) for y in 37x + 80y = 1645

      37x + 80(34 - x) = 1645
      37x + 2720 - 80x = 1645
           -43x + 2720 = 1645
                  -43x = -1075
                x = 25 = the number of 37c stamps.

Substitute in y = 34 - x
              y = 34 - (25
              y = 9 80c stamps.

The number of 80c stamps is 34-y or 34-9 or 25 80c stamps.

Checking:  25 37c stamps is $9.25 and 9 80c stamps is $7.20
            That's 34 stamps.
            And indeed $9.25 + $7.20 = $16.45

Edwin</pre>