Each basket of peaches has w red peaches and x green peaches. If there are y such baskets How many peaches are in the baskets altogether?
There are w + x = 19 + 4 = 23 peaches in each basket. 

There are y = 15 baskets. 

Therefore, there are y * (w + x) = 15 * (19 + 4) = 15 * 23 = 345 peaches in the baskets altogether.