Sam kept his gold and silver stars in two boxes. The ratio of the number of gold to silver stars in the first box was 1 : 5 and it was 1 : 2 in the second box. The two boxes contained the same number of stars. What fraction of Sam's stars were goId stars?

6x = 3y

so y=2x
total stars: 6x+3y = 12x
total gold stars: x+y = 3x
3x/12x = 1/4