History of philosophy

In Hume's terminology, how do ideas generally differ from impressions?