The first looks like you might be able to play from the red to the long rail without a kiss. I'd have to see it on the table to be sure. If that doesn't work, you could play thin on yellow and reverse the corner.
The second is a problem. How about follow straight through the near ball to hug the cushion? No easy position but the shot not hard.