You do not know that the center of mass of the boat is at 3m.
You must assume the position of the CoM as some distance x (from the wheel) in the first case, and x - 0.15 in the second case. Write both equations, with the two unknowns (x and M), and solve for them from the equations.