A boy got twice as many items on a test wrong as he got right. If he attempted 51 items in all, how many did he solve correctly?

number correct ---- x

number incorrect --- 2x

x + 2x = 51

solve for x

R = 2W

R + W = 2W + W = 3W = 51

Solve for W then R.