when a problem asks for domain and range which is which?

http://www.mathsisfun.com/sets/domain-range-codomain.html