The mass of plastic triangles is 3g and the mass of a plastic square is 7g. Samson has a collection of plastic triangles and squares. If there are 14 triangles and squares altogether and their combined mass is 58g, calculate how many triangles and how many squares Samson has