You may have substituted and simplified correctly to get , but then divided by 2 instead of correctly multiplying both sides by 2.