Anna bought 8 tetras and 2 rainbow fish for her aquarium. The rainbow fish cost $6 more than the tetras. She paid a total of $37. Find the cost of a tetra.