Ravi had a total of 80 pieces of $10 notes and $50 notes. He used 1/2 of his $10 notes and deposit 8 pieces of $50 into the bank. After which, the number of $50 notes he had became 2/5 of the number of $10 notes. Find the total value of the
80 pieces of notes that he had at first