You can put this solution on YOUR website! you factor this into then set each segment in parenthesis equal to zero and solve for x, so for the first segment we have
x-5=0 now add 5 to each side and you get
x=5 now we do the other segment
x-2=0 we add 2 to each side and we get
x=2
So the answers are x=5 or x=2