The combined mass of a penny, a nickel, and a dime is 9.8g. Ten nickels and three pennies have the same mass as 25 dimes. Fifty dimes have the same mass as 18 nickels and 10 pennies. Write and solve a system of equations to find the mass of each type of coin.