By the looks of it, your method is correct, although it is not the most clear way to write down what you are doing. In particular, I was wondering where the exponential is coming from on the first line, although I think in the end it doesn't matter because taking the wrong base number (e instead of something else) produces a common factor which drops out when you equate the two.
Here is what I would expect.
The formula for growth at a constant relative rate is
P(n) = C (1 + k)^n
because for n = 0 the population is C, and for each time step you have to multiply the previous population P(n - 1) by (1 + k).
Then it is given that
P(10) = 72 = C (1 + k)^(10)
P(18) = 96 = C (1 + k)^(18)
which gives you two equations in two unknowns.
What you could do is divide them, and get
[tex]\frac{P(18)}{P(10)} = \frac{96}{72} = \frac{C (1 + k)^{18}}{C (1 + k)^{10}} = (1 + k)^8[/tex]
and you see that C drops out. So now it's easy to solve for k:
[tex](1 + k)^8 = 4/3[/tex]
so
[tex]1 + k = \sqrt[8]{4/3} = 1,0366...[/tex]
[tex]\qquad\implies k = 0,0366...[/tex]
To find C, you only need to plug it back into one of the equations, for example
P(10) = 72 = C * (1,0366...)^(10)
(try not to round, e.g. if you use a calculator try to use it's ANS function to plug in 1 + k) and so
C = 72 / (1,0366...)^(10) = 50.25...
Note how the formula one starts with is more intuitive (I see an exponential in your formula, while it says the growth is at constant relative rate; my formula explicitly has this behaviour by multiplying by the growth percentage at every step) and easier to work with (you don't need logarithms, just some root).
That C and P(n) are in general not integer numbers is common in such exercises. You need to remember that this is merely a model for some "real" process, which makes assumptions (constant growth), tries to describe something discrete (counting the population every month) by a continuous function (you can calculate C (1 + k)^n for any n), and all we want of it is to give us more or less the right numbers at n = 0, 1, 2, ... although we will never be able to use it to predict any exact historic or future data.