The answer is
A(m) = 12 + 2m
B(m) = 10 + 3m
m - the number of months
F(m) - growth in a function of months m
Species A is 12 cm tall, so the number 12 is independent on a number of months. But it grows 2 cm per month. This means that in m months it will grow 2 * m. So, its function is: A(m) = 12 + 2m
Similarly, species B is 10 cm tall, so the number 10 is independent on a number of months. But it grows 3 cm per month. This means that in m months it will grow 3 * m. So, its function is: B(m) = 10 + 3m