A) you would make x=2 for both, then x=7 for both. If the expressions give the same answer for each respective trial, then you can assume they are equivalent.
B) solve for x=5 for both expressions. If both expressions produce the same answer, then you can assume they are equivalent.