Here are the two tables in question, assuming it is not necessary to see more. I just need to come up with a way to add the numbers together. I would think that by their very existence they could be dynamically added into a product. Guess it's not that easy though.
Each table here includes only a few rows of data because I could not submit more.
--
-- Table structure for table horsevalue
CREATE TABLE horsevalue (
horse_id varchar(10) default NULL,
value_id varchar(10) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table horsevalue
INSERT INTO horsevalue VALUES ('1', '124');
INSERT INTO horsevalue VALUES ('1', '109');
INSERT INTO horsevalue VALUES ('1', '38');
--
-- Table structure for table value
CREATE TABLE value (
id int(10) NOT NULL auto_increment,
breed_id int(10) NOT NULL default '0',
att_id int(10) NOT NULL default '0',
choice_id int(10) NOT NULL default '0',
value float default NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=266 ;
--
-- Dumping data for table value
INSERT INTO value VALUES (263, 13, 26, 198, 2000);
INSERT INTO value VALUES (264, 13, 26, 197, 3000);
INSERT INTO value VALUES (265, 13, 26, 206, 2000);