Solved for the prismatic.
I don't think theta 3 will change since we are only changing the x and y of joint 3 in our case.