Your friend had the y-intercept correct for the line $-x+2y=1$, and the line contains the given point $(-1,0)$, but the second line's equation does not hold true using the same point. The second line's slope and y-intercept were determined incorrectly, as the correct solution is $(3,2)$.