M has 5 vhs tapes and 3 DVDs that cost $46. He also got 3 vhs tapes and 5 DVDs that cost $50. How much does 6 of each type cost?