Yenni had a total of 5070 yellow and red beads at first. Her mother gave her some more beads. As a result, the number of her yellow beads increased by 20% and the number of her red beads increased by 3⁄5. The ratio of her yellow to red beads then became 3 : 8. How many yellow beads did she have at first?