Mr Kong bought some swordtails at $6 each. He also bought an equal number of mollies at a different price. The average price of a swordtail and a molly was $4. Mr Kong paid $16 more for the swordtails than the mollies. How many swordtails did he buy?