This
totally changes the problem.
I wish you had said that you were shown a
particular pair of sets on a plane, rather than asking as if you had to prove a general fact, "If we have (any) two sets A and B where A is not an open set and B is open, then AUB is open or not?" The answer does
not follow from some general rule about unions, but from the details of the picture, which you withheld.
As drawn, evidently the lower boundary of A is part of A, making it not open. Since that is a boundary of the union as well, the union is also not open. It is not that the boundary points "exist", as you say, but that they are part of the set.
I'll tell you where I was headed in the problem as I perceived it, so that I don't completely waste the effort: If A was a closed interval on the real number line, and B its complement, then A would not be open, B would be open, and their union, the entire line, would be open. (This is the counterexample I had in mind.) The condition for this is that the boundary of A is (part of) the boundary of B.
Please, in the future, obey the instructions in the
READ BEFORE POSTING announcement, "
Post the complete text of the exercise. This would include the full statement of the exercise
and its instructions, so the tutors will know what you are working on. If there is a graphic or table or some other non-textual information necessary to the exercise, include a detailed description." This would save a lot of wasted time and effort for both of us.