I'm not really sure how to show this, need some help

Let Ai be contained in R (real) and i is and element of I={1,...,n}

A=UAi NOTE (the U means the union of a collection of sets)

show that sup(A)=sup(sup Ai)
and
inf(A)=inf(inf Ai)