In the first case you can just substitute the limiting value of x in the expression as it is a point of contiuity of the expression.

For the second you can do the same as the expression is continuous from the right at the limiting value of x and you are approaching from the right.

CB