Linear Algebra Examples

Simplify the Matrix p(x):|1+2x|=7 q(x):|x-3|=1-x
I am unable to solve this problem.