Chelsea bought a total of 8 nails at Ace Hardware. She purchased both 6-penny nails and 10-penny nails. She bought 2 more 6-penny nails than she did 10-penny nails. She had a total of 8 nails. How many 6-penny and 10-penny nails did Chelsea purchase?