In Canada, $1 and $2 bills have been replaced by coins. When Marissa returned home to San Fran from a trip to Canada, she found that she had acquired 37 of these coins, with a total value of 51 canadian dollars. How many coins of each denomination did she have?