what are the two main types of finance?