Were you given a method to use? I suspect that the book answer comes from a least-squares fit, while yours comes from inspecting the data.
To convert you answer to a cosine answer, recognize that you can obtain the graph of by shifting the graph of by units to the right.
So, is equivalent to .
Do some algebra to compare. I'm puzzled by the variable m in the cosine expression the "book" gave.