A certain bowl contains only red, blue, and yellow candies. The ratio of red candies to blue candies is 7:4, and the ratio of red candies to yellow candies is 2:3. There are 104 more yellow candies than blue candies. What is the total number of candies in the bowl?