beans like to be near certain types of plants now they they find that tomatoes don't do well if you put them next to something like uh peas i don't know something
Tomatoes will do fine next to peas and don't put anything next to your beans.