If a and b are the lengths of two sides of a triangle such that the product ab = 24, where a and b are integers, then how many such triangles are possible?
1. 16
2. 15
3. 18
4. 12