how do i solve this?

Well this is considerably easy!
Create equivalent expressions in the equation that all have equal bases.
2^x=2^4
Since the bases are the same, then two expressions are only equal if the exponents are also equal.
x=4
Verify each of the solutions by substituting them into 2^x=16
and solving.
x=4