To prepare a Spanish green bean and tomatoes recipe, first you need to prepare the green beans. First, you'll need the following ingredients: Green Beans: Wash the beans and cut them into bite-sized pieces. Cut the tomatoes in half lengthwise, and then cut each half into quarters. Heat the olive oil over medium-high heat. Add the chopped tomatoes to the oil and cook them until they're soft, about 5 minutes. Remove them from the heat and set them aside to cool. Next, add the diced onions and garlic and saute until the onions are translucent, 3 to 4 minutes, stirring frequently. Then add in the tomato paste and salt and pepper to taste. Toss the ingredients together until everything is evenly coated.