Linear Algebra Examples

Simplify the Matrix Given (x+5)/(x-1) if x<=-3 4x+9 if x>-3 ; what is 2(g(3))+g(-4) ?
I am unable to solve this problem.