how do i solve for x

The letter "x" is often used in algebra to mean a value that is not yet known. It is called a "variable" or sometimes an "unknown". In x + 2 = 7, x is a variable, but we can work out its value if we try! so im pretty sure its 20