You haven't told us exactly what "encode the message using matrix B" means in your context. There are many codes! I'd especially like to see an example you were given. As it is, I don't even know what order you multiplied in.
Here are a couple thoughts I have:
First, there are 25 numbers in your answer, 30 in theirs. This suggests that they used a 5 by 6 or 6 by 5 matrix. Second, I had noticed already that you ignored spaces in the message, likely because you thought the message had to fit in a 5x5 matrix. It's possible that this is all the help you need.
If adding in spaces doesn't help, please show your work, and an example, so we can check details.