A man purchased eggs at 3 for Rs 5 and sold them at 5 for Rs 12 thus he gained Rs143. How many eggs did he purchase?

A man purchased eggs at 3 for Rs 5 and sold them at 5 for Rs 12 thus he gained Rs143. How many eggs did he purchase?