Linear Algebra Examples

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