(M minus 2) XM square minus 3 is equal to 5, find the value of M

(M minus 2) XM square minus 3 is equal to 5, find the value of M

(M-2)M^2-3=5
(M-2)M^2=8
M^3-2M^2=8
Let m ^ 2 = t
Original = t (√ T-2) = 8
M=3