The ratio 3 to 5 (or 3:5 (or 3/5)) captures the relationship between the number of blue tacks and the number of red tacks; we have 3 blue for every 5 red. The number of tacks might change, but so long as we can group our collection up into sets of 3 blue and 5 red tacks with none left over, that relationship still holds.
Here, we have 50 red tacks. If we want our ratio to stay the same (3 to 5), we'll need to pair a set of 3 blue tacks with every set of 5 red tacks. In a group of 50, we can make 10 groups of 5 red tacks, so we'll also need 10 groups of 3 blue tacks, which gives us a total of 30 blue tacks.