Is that a typo? 10 is certainly in <2>U<3>, since it is a multiple of 2.
On the example thing, if 10 wasn't a typo, the example is yours to play with, so you can always take the simplest thing - I'm always amazed at students who come up with some weird or wonderful counter example when frequently, say, 0 would do.
Of course here 0 isn't the right thing to look at. But what about 1? Or what about 2+3? It is the integers we're talking about here. The integers are PID. You've known for ages (the euclidean algorithm) that it is a PID, even if you don't know the words: <a,b>=<gcd(a,b)>, so picking any two coprime elements like 2 and 3, <2,3>=Z=/=<2>U<3>.
So, using knowledge of Z, and the good old Euclidean algorithm tells you it is wrong in Z.
Now, by picking the *simplest* possible thing to look at show that <a>U<b> is an ideal in any ring if and only if <a> is a subset of <b> or vice versa.